File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ // ignore-tidy-linelength
2
+
1
3
#![ crate_name = "foo" ]
2
4
3
5
//! This is the "start" of the 'document'! How'd you know that "it's" the start?
7
9
//! [link with "smart punct'" -- yessiree!][]
8
10
//!
9
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
+ //! ```
10
24
11
25
// @has "foo/index.html" "//p" "This is the “start” of the ‘document’! How’d you know that “it’s” the start?"
12
26
// @has "foo/index.html" "//h1" "Header with “smart punct’”"
13
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!"'
You can’t perform that action at this time.
0 commit comments