]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/smart-punct.rs
Auto merge of #82417 - the8472:fix-copy_file_range-append, r=m-ou-se
[rust.git] / src / test / rustdoc / smart-punct.rs
1 // ignore-tidy-linelength
2
3 #![crate_name = "foo"]
4
5 //! This is the "start" of the 'document'! How'd you know that "it's" the start?
6 //!
7 //! # Header with "smart punct'"
8 //!
9 //! [link with "smart punct'" -- yessiree!][]
10 //!
11 //! [link with "smart punct'" -- yessiree!]: https://www.rust-lang.org
12 //!
13 //! # Code should not be smart-punct'd
14 //!
15 //! `this inline code -- it shouldn't have "smart punct"`
16 //!
17 //! ```
18 //! let x = "don't smart-punct me -- please!";
19 //! ```
20 //!
21 //! ```text
22 //! I say "don't smart-punct me -- please!"
23 //! ```
24
25 // @has "foo/index.html" "//p" "This is the “start” of the ‘document’! How’d you know that “it’s” the start?"
26 // @has "foo/index.html" "//h1" "Header with “smart punct’”"
27 // @has "foo/index.html" '//a[@href="https://www.rust-lang.org"]' "link with “smart punct’” – yessiree!"
28 // @has "foo/index.html" '//code' "this inline code -- it shouldn't have \"smart punct\""
29 // @has "foo/index.html" '//pre' "let x = \"don't smart-punct me -- please!\";"
30 // @has "foo/index.html" '//pre' "I say \"don't smart-punct me -- please!\""