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:
Georg Brandl 2016-05-09 15:30:24 +02:00
parent 50909f2d50
commit 5606b42981
3 changed files with 23 additions and 2 deletions

View file

@ -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: