]> git.lizzy.rs Git - rust.git/blobdiff - clippy_utils/src/source.rs
Add testcases
[rust.git] / clippy_utils / src / source.rs
index 4d49b43bde9ecd9751bc825b55afad614e5f1fd7..789079510c5e80fa7251536eeda79336d99e7777 100644 (file)
@@ -168,7 +168,7 @@ pub fn snippet<'a, T: LintContext>(cx: &T, span: Span, default: &'a str) -> Cow<
     snippet_opt(cx, span).map_or_else(|| Cow::Borrowed(default), From::from)
 }
 
-/// Same as `snippet`, but it adapts the applicability level by following rules:
+/// Same as [`snippet`], but it adapts the applicability level by following rules:
 ///
 /// - Applicability level `Unspecified` will never be changed.
 /// - If the span is inside a macro, change the applicability level to `MaybeIncorrect`.