You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustdoc: remove artificial indentation of doctest code
The indentation makes the examples look nicer when printed (when is this done?), but breaks tests using multi-line string literals.
Fixes: #25944
When using multiline string literal in doctest, rustdoc pads spaces after the newline. The doc renders perfectly fine:
I tried this code:
I expected to see this happen: The test should pass.
Instead, this happened: The test failed.
Did you notice it?
Meta
rustc --version --verbose
:rustdoc --version --verbose
:Backtrace (I don't know if it'd be useful, but):
The text was updated successfully, but these errors were encountered: