-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: tweak notes on ignore/compile_fail examples #45815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @frewsxcv (rust_highfive has picked a reviewer for you, use r? to override) |
@rust-lang/docs These strings are being stirred up again, what do you think of these updates? |
@@ -228,9 +228,9 @@ impl<'a, I: Iterator<Item = Event<'a>>> Iterator for CodeBlocks<'a, I> { | |||
)) | |||
}); | |||
let tooltip = if ignore { | |||
Some(("Be careful when using this code, it's not being tested!", "ignore")) | |||
Some(("This example is not tested", "ignore")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of this new sentence. :-/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's matter of fact, much better.
} 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")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Oh right, there's a test for the warning text, so travis failed because i didn't change it:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! the text associated with the examples is a bit subjective, but i personally think this is an improvement. r=me with test fixes and if imperio is cool with the changes
triage ping for you @QuietMisdreavus! ❤️ |
I've pushed a commit that fixes the test. @GuillaumeGomez Do you have any specific concerns about the new text, or are you okay with this landing? AFAIK @frewsxcv wanted to make sure you were okay with the changes before approving. |
Oops sorry! The current text is fine for me so let's merge. @bors: r+ rollup |
📌 Commit 02b3785 has been approved by |
…s, r=GuillaumeGomez rustdoc: tweak notes on ignore/compile_fail examples Part of rust-lang#44927 This is a softening of these notices to mention *why* a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo. 
…s, r=GuillaumeGomez rustdoc: tweak notes on ignore/compile_fail examples Part of rust-lang#44927 This is a softening of these notices to mention *why* a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo. 
Part of #44927
This is a softening of these notices to mention why a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo.