diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-16 17:59:07 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-16 17:59:07 +0100 |
| commit | c367cc3ef5648d5695fdb795cc66edbff88b4ce9 (patch) | |
| tree | 5d8bc6856784c51abd06884ac4f4140d993939e1 /src/librustdoc | |
| parent | 23839853425e8c0c80d0aadb32bf5b4ba1bdf64b (diff) | |
| download | rust-c367cc3ef5648d5695fdb795cc66edbff88b4ce9.tar.gz rust-c367cc3ef5648d5695fdb795cc66edbff88b4ce9.zip | |
Remove unneeded handling of backlines in doctest attributes
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/doctest/make.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustdoc/doctest/make.rs b/src/librustdoc/doctest/make.rs index 66549afe5a1..a188bc8ebd9 100644 --- a/src/librustdoc/doctest/make.rs +++ b/src/librustdoc/doctest/make.rs @@ -537,8 +537,6 @@ fn handle_attr(mod_attr_pending: &mut String, source_info: &mut SourceInfo, edit push_to.push('\n'); // If it's complete, then we can clear the pending content. mod_attr_pending.clear(); - } else if mod_attr_pending.ends_with('\\') { - mod_attr_pending.push('n'); } else { mod_attr_pending.push_str("\n"); } |
