rustdoc: remove artificial indentation of doctest code
This makes the examples look nicer when printed (when is this done?), but breaks tests using multi-line string literals. Fixes: #25944
This commit is contained in:
parent
50909f2d50
commit
5606b42981
3 changed files with 23 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ include the newline and the leading spaces:
|
|||
let s = "foo
|
||||
bar";
|
||||
|
||||
assert_eq!("foo\n bar", s);
|
||||
assert_eq!("foo\n bar", s);
|
||||
```
|
||||
|
||||
The second, with a `\`, trims the spaces and the newline:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue