From c61e40f5a33c8a91e5fd01a9533efb0932100369 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 20 Dec 2016 17:27:46 -0800 Subject: [PATCH] Document config ParsingError. --- lib/src/config/error.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/config/error.rs b/lib/src/config/error.rs index 8cb0f843..8a58466c 100644 --- a/lib/src/config/error.rs +++ b/lib/src/config/error.rs @@ -6,9 +6,13 @@ use term_painter::ToStyle; /// The type of a configuration parsing error. #[derive(Debug, PartialEq, Clone)] pub struct ParsingError { + /// Start and end byte indices into the source code where parsing failed. pub byte_range: (usize, usize), + /// The (line, column) in the source code where parsing failure began. pub start: (usize, usize), + /// The (line, column) in the source code where parsing failure ended. pub end: (usize, usize), + /// A description of the parsing error that occured. pub desc: String, }