We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52283f3 + faddee3 commit ca1b25aCopy full SHA for ca1b25a
src/snippet.rs
@@ -103,7 +103,7 @@ impl<'a> Label<'a> {
103
self
104
}
105
106
- /// Create a [SourceAnnotation] with the given span for a [Slice]
+ /// Create a [`SourceAnnotation`] with the given span for a [`Slice`]
107
pub fn span(&self, span: Range<usize>) -> SourceAnnotation<'a> {
108
SourceAnnotation {
109
range: span,
@@ -174,9 +174,9 @@ pub enum AnnotationType {
174
Help,
175
176
177
-/// An annotation for a `Slice`.
+/// An annotation for a [`Slice`].
178
///
179
-/// This gets created by [Label::span].
+/// This gets created by [`Label::span`].
180
#[derive(Debug)]
181
pub struct SourceAnnotation<'a> {
182
/// The byte range of the annotation in the `source` string
0 commit comments