Skip to content

Commit 453a88f

Browse files
committed
docs: Provide example for Group::with_level
1 parent 88072d6 commit 453a88f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/snippet.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ impl<'a> Group<'a> {
4343
}
4444

4545
/// Create a title-less group with a primary [`Level`] for [`Annotation`]s
46+
///
47+
/// # Example
48+
///
49+
/// ```rust
50+
#[doc = include_str!("../examples/elide_header.rs")]
51+
/// ```
52+
#[doc = include_str!("../examples/elide_header.svg")]
4653
pub fn with_level(level: Level<'a>) -> Self {
4754
Self {
4855
primary_level: level,

0 commit comments

Comments
 (0)