aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de.rs b/src/de.rs
index 75129ed..bd73649 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -1064,6 +1064,8 @@ impl<'a> Deserializer<'a> {
impl Error {
/// Produces a (line, column) pair of the position of the error if available
+ ///
+ /// All indexes are 0-based.
pub fn line_col(&self) -> Option<(usize, usize)> {
self.inner.line.map(|line| (line, self.inner.col))
}