]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/lib.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_errors / src / lib.rs
index df41fc00714b684c9a16beaaa084b7a55b3c5bd4..f83fa68ced00daa6a0e17d615cac38f8a7e79af1 100644 (file)
@@ -100,7 +100,7 @@ pub struct CodeSuggestion {
     /// `foo.bar` might be replaced with `a.b` or `x.y` by replacing
     /// `foo` and `bar` on their own:
     ///
-    /// ```
+    /// ```ignore (illustrative)
     /// vec![
     ///     Substitution { parts: vec![(0..3, "a"), (4..7, "b")] },
     ///     Substitution { parts: vec![(0..3, "x"), (4..7, "y")] },
@@ -109,7 +109,7 @@ pub struct CodeSuggestion {
     ///
     /// or by replacing the entire span:
     ///
-    /// ```
+    /// ```ignore (illustrative)
     /// vec![
     ///     Substitution { parts: vec![(0..7, "a.b")] },
     ///     Substitution { parts: vec![(0..7, "x.y")] },