diff options
Diffstat (limited to 'src/parse/lines.rs')
| -rw-r--r-- | src/parse/lines.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/lines.rs b/src/parse/lines.rs index e42d110b..2d97a25c 100644 --- a/src/parse/lines.rs +++ b/src/parse/lines.rs @@ -77,8 +77,8 @@ impl<'s> LineMap<'s> { } } -/// Determine the column at the end of the string. -pub fn search_column(src: &str) -> usize { +/// Count how many column the string would fill. +pub fn count_columns(src: &str) -> usize { let mut column = 0; for c in src.chars().rev() { if is_newline(c) { |
