We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ItemizedBlock::new
1 parent 6bbbe5c commit 88c314fCopy full SHA for 88c314f
src/comment.rs
@@ -490,8 +490,8 @@ impl ItemizedBlock {
490
None // No markers found.
491
}
492
493
- /// Creates a new ItemizedBlock described with the given `line`
494
- /// or None if `line` doesn't start an item.
+ /// Creates a new `ItemizedBlock` described with the given `line`.
+ /// Returns `None` if `line` doesn't start an item.
495
fn new(line: &str) -> Option<ItemizedBlock> {
496
let marker_length = ItemizedBlock::get_marker_length(line.trim_start())?;
497
let space_to_marker = line.chars().take_while(|c| c.is_whitespace()).count();
0 commit comments