Skip to content

Commit d913518

Browse files
committed
utf8-converter: Require docs for public items.
1 parent b5a2f5c commit d913518

File tree

1 file changed

+2
-0
lines changed
  • crates/utf8-converter/src

1 file changed

+2
-0
lines changed

crates/utf8-converter/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Position calculator to convert between byte, char, and line positions.
2+
#![deny(missing_docs)]
23

34
use std::ops::Range;
45

@@ -125,6 +126,7 @@ impl Utf8Converter {
125126
self.line_begins.len() as u32 - 1
126127
}
127128

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

0 commit comments

Comments
 (0)