diff --git a/src/snippet.rs b/src/snippet.rs index e3a0bc0..37f431a 100644 --- a/src/snippet.rs +++ b/src/snippet.rs @@ -103,7 +103,7 @@ impl<'a> Label<'a> { self } - /// Create a [SourceAnnotation] with the given span for a [Slice] + /// Create a [`SourceAnnotation`] with the given span for a [`Slice`] pub fn span(&self, span: Range) -> SourceAnnotation<'a> { SourceAnnotation { range: span, @@ -174,9 +174,9 @@ pub enum AnnotationType { Help, } -/// An annotation for a `Slice`. +/// An annotation for a [`Slice`]. /// -/// This gets created by [Label::span]. +/// This gets created by [`Label::span`]. #[derive(Debug)] pub struct SourceAnnotation<'a> { /// The byte range of the annotation in the `source` string