Skip to content

Commit 1ec9b3b

Browse files
tweak notes on ignore/compile_fail examples
1 parent dcd343b commit 1ec9b3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn render_with_highlighting(src: &str, class: Option<&str>, id: Option<&str>
4242

4343
let mut out = Vec::new();
4444
if let Some((tooltip, class)) = tooltip {
45-
write!(out, "<div class='information'><div class='tooltip {}'><span \
45+
write!(out, "<div class='information'><div class='tooltip {}'><span \
4646
class='tooltiptext'>{}</span></div></div>",
4747
class, tooltip).unwrap();
4848
}

src/librustdoc/html/markdown.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ impl<'a, I: Iterator<Item = Event<'a>>> Iterator for CodeBlocks<'a, I> {
228228
))
229229
});
230230
let tooltip = if ignore {
231-
Some(("Be careful when using this code, it's not being tested!", "ignore"))
231+
Some(("This example is not tested", "ignore"))
232232
} else if compile_fail {
233-
Some(("This code doesn't compile so be extra careful!", "compile_fail"))
233+
Some(("This example deliberately fails to compile", "compile_fail"))
234234
} else {
235235
None
236236
};
@@ -639,9 +639,9 @@ pub fn render(w: &mut fmt::Formatter,
639639
))
640640
});
641641
let tooltip = if ignore {
642-
Some(("Be careful when using this code, it's not being tested!", "ignore"))
642+
Some(("This example is not tested", "ignore"))
643643
} else if compile_fail {
644-
Some(("This code doesn't compile so be extra careful!", "compile_fail"))
644+
Some(("This example deliberately fails to compile", "compile_fail"))
645645
} else {
646646
None
647647
};

0 commit comments

Comments
 (0)