Skip to content

Commit faddee3

Browse files
committed
docs: Improve cross-references
1 parent 52283f3 commit faddee3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/snippet.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl<'a> Label<'a> {
103103
self
104104
}
105105

106-
/// Create a [SourceAnnotation] with the given span for a [Slice]
106+
/// Create a [`SourceAnnotation`] with the given span for a [`Slice`]
107107
pub fn span(&self, span: Range<usize>) -> SourceAnnotation<'a> {
108108
SourceAnnotation {
109109
range: span,
@@ -174,9 +174,9 @@ pub enum AnnotationType {
174174
Help,
175175
}
176176

177-
/// An annotation for a `Slice`.
177+
/// An annotation for a [`Slice`].
178178
///
179-
/// This gets created by [Label::span].
179+
/// This gets created by [`Label::span`].
180180
#[derive(Debug)]
181181
pub struct SourceAnnotation<'a> {
182182
/// The byte range of the annotation in the `source` string

0 commit comments

Comments
 (0)