about summary refs log tree commit diff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2019-10-26 17:27:47 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-10-26 17:27:47 +0300
commit394e4744792f8e36ca1690cb23c2d3dd55556272 (patch)
treebd13090d770165a128622608baa4e535e5d4a471 /xtask/src/codegen
parente3a253d80f124f12b5ec3707216590eb5c0dccff (diff)
downloadrust-394e4744792f8e36ca1690cb23c2d3dd55556272.tar.gz
rust-394e4744792f8e36ca1690cb23c2d3dd55556272.zip
add blank lines for readability
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/gen_assists_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_assists_docs.rs b/xtask/src/codegen/gen_assists_docs.rs
index e313820d18a..2ca7cda63db 100644
--- a/xtask/src/codegen/gen_assists_docs.rs
+++ b/xtask/src/codegen/gen_assists_docs.rs
@@ -51,7 +51,7 @@ fn collect_assists() -> Result<Vec<Assist>> {
                 id
             );
 
-            let doc = take_until(lines.by_ref(), "```");
+            let doc = take_until(lines.by_ref(), "```").trim().to_string();
             let before = take_until(lines.by_ref(), "```");
 
             assert_eq!(lines.next().unwrap().as_str(), "->");