Skip to content

Commit 2a33dca

Browse files
committed
docs: Describe groups
1 parent 5cf3738 commit 2a33dca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/snippet.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pub(crate) struct Id<'a> {
1818
}
1919

2020
/// An [`Element`] container
21+
///
22+
/// A [diagnostic][Renderer::render] is made of several `Group`s.
23+
/// Start a new `Group` to [annotate][AnnotationKind::Primary] [`Snippet`]s for a different [semantic
24+
/// reason][Title].
2125
#[derive(Clone, Debug)]
2226
pub struct Group<'a> {
2327
pub(crate) primary_level: Level<'a>,

0 commit comments

Comments
 (0)