Skip to content

Commit 9e1655e

Browse files
committed
docs: Describe Origin::primary
1 parent 8277349 commit 9e1655e

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
@@ -413,6 +413,10 @@ impl<'a> Origin<'a> {
413413
self
414414
}
415415

416+
/// Mark this origin as the primary one within this [`Group`]
417+
///
418+
/// Generally there should only be one primary origin, whether from an [`Origin`] or an
419+
/// [`Annotation`] with [`AnnotationKind::Primary`].
416420
pub fn primary(mut self, primary: bool) -> Self {
417421
self.primary = primary;
418422
self

0 commit comments

Comments
 (0)