Skip to content

Commit

Permalink
utf8-converter: Require docs for public items.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendorff committed Nov 1, 2024
1 parent b5a2f5c commit d913518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/utf8-converter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Position calculator to convert between byte, char, and line positions.
#![deny(missing_docs)]

use std::ops::Range;

Expand Down Expand Up @@ -125,6 +126,7 @@ impl Utf8Converter {
self.line_begins.len() as u32 - 1
}

/// Returns true if the specified line is empty except for whitespace.
pub fn only_whitespaces(&self, line_number: u32) -> bool {
self.whitespace_only
.get(line_number as usize)
Expand Down

0 comments on commit d913518

Please sign in to comment.