Skip to content

Commit

Permalink
docs: Describe fold
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Mar 12, 2024
1 parent 373ab44 commit 795a387
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ impl<'a> Snippet<'a> {
self
}

/// Hide lines without [`Annotation`]s
pub fn fold(mut self, fold: bool) -> Self {
self.fold = fold;
self
Expand Down

0 comments on commit 795a387

Please sign in to comment.