]> git.lizzy.rs Git - rust.git/commitdiff
tweak notes on ignore/compile_fail examples
authorQuietMisdreavus <grey@quietmisdreavus.net>
Mon, 6 Nov 2017 21:10:58 +0000 (15:10 -0600)
committerQuietMisdreavus <grey@quietmisdreavus.net>
Mon, 6 Nov 2017 21:10:58 +0000 (15:10 -0600)
src/librustdoc/html/highlight.rs
src/librustdoc/html/markdown.rs

index 98863b229b51100d73e86410cfe6f637fc4415c3..6b0f209c0c454418f714a4646fe97738eed4d6b3 100644 (file)
@@ -42,7 +42,7 @@ pub fn render_with_highlighting(src: &str, class: Option<&str>, id: Option<&str>
 
     let mut out = Vec::new();
     if let Some((tooltip, class)) = tooltip {
-        write!(out, "<div class='information'><div class='tooltip {}'>â\9a <span \
+        write!(out, "<div class='information'><div class='tooltip {}'>â\93\98<span \
                      class='tooltiptext'>{}</span></div></div>",
                class, tooltip).unwrap();
     }
index 001e773098eb36b91c4761ec60ec5a957d94583e..34949970081d5822cf9d03dc308893c2346f37c4 100644 (file)
@@ -228,9 +228,9 @@ fn dont_escape(c: u8) -> bool {
                 ))
             });
             let tooltip = if ignore {
-                Some(("Be careful when using this code, it's not being tested!", "ignore"))
+                Some(("This example is not tested", "ignore"))
             } else if compile_fail {
-                Some(("This code doesn't compile so be extra careful!", "compile_fail"))
+                Some(("This example deliberately fails to compile", "compile_fail"))
             } else {
                 None
             };
@@ -639,9 +639,9 @@ fn dont_escape(c: u8) -> bool {
                     ))
                 });
                 let tooltip = if ignore {
-                    Some(("Be careful when using this code, it's not being tested!", "ignore"))
+                    Some(("This example is not tested", "ignore"))
                 } else if compile_fail {
-                    Some(("This code doesn't compile so be extra careful!", "compile_fail"))
+                    Some(("This example deliberately fails to compile", "compile_fail"))
                 } else {
                     None
                 };