diff --git a/src/snippet.rs b/src/snippet.rs index 3045b2a..851a55f 100644 --- a/src/snippet.rs +++ b/src/snippet.rs @@ -267,9 +267,9 @@ impl<'a> Annotation<'a> { #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] #[non_exhaustive] pub enum AnnotationKind { - /// Match the primary [`Level`] of the group. + /// Shows the source that the [Group's Title][Group::with_title] references /// - /// See [`Group::with_level`] for details about how this is determined + /// For [`Title`]-less groups, see [`Group::with_level`] Primary, /// Additional context to explain the [`Primary`][Self::Primary] /// [`Annotation`] @@ -396,8 +396,6 @@ impl<'a> Origin<'a> { } /// Set the default line number to display - /// - /// Otherwise this will be inferred from the primary [`Annotation`] pub fn line(mut self, line: usize) -> Self { self.line = Some(line); self @@ -405,8 +403,6 @@ impl<'a> Origin<'a> { /// Set the default column to display /// - /// Otherwise this will be inferred from the primary [`Annotation`] - /// ///