Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/line-index/src/lib.rs')
| -rw-r--r-- | lib/line-index/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/line-index/src/lib.rs b/lib/line-index/src/lib.rs index 40815bdcf1..463227900d 100644 --- a/lib/line-index/src/lib.rs +++ b/lib/line-index/src/lib.rs @@ -79,8 +79,8 @@ impl WideChar { } } -/// Maps flat [`TextSize`] offsets into `(line, column)` representation. -#[derive(Clone, Debug, PartialEq, Eq)] +/// Maps flat [`TextSize`] offsets to/from `(line, column)` representation. +#[derive(Debug, Clone, PartialEq, Eq)] pub struct LineIndex { /// Offset the beginning of each line, zero-based. newlines: Box<[TextSize]>, |