From 9fbe75afed8eb030531077410d47740335614022 Mon Sep 17 00:00:00 2001 From: Pantos Date: Thu, 2 May 2024 05:07:12 +0200 Subject: [PATCH] fix line_end_char_index() documentation --- helix-core/src/line_ending.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-core/src/line_ending.rs b/helix-core/src/line_ending.rs index 36c02a941..2b272608e 100644 --- a/helix-core/src/line_ending.rs +++ b/helix-core/src/line_ending.rs @@ -195,7 +195,7 @@ pub fn get_line_ending_of_str(line: &str) -> Option { } } -/// Returns the char index of the end of the given line, not including its line ending. +/// Returns the char index of the end of the given line. pub fn line_end_char_index(slice: &RopeSlice, line: usize) -> usize { slice.line_to_char(line + 1) - get_line_ending(&slice.line(line))