Skip to content

Commit

Permalink
Add test for removed one character last line in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 6, 2021
1 parent e8f1d57 commit aa6f6f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/rustdoc/include_str_cut.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#![crate_name = "foo"]
#![no_std]

// @has 'foo/fn.foo.html'
// @has - '//*[@class="docblock"]' 'inc2 x'
#[doc = include_str!("short-line.md")]
pub fn foo() {}
2 changes: 2 additions & 0 deletions src/test/rustdoc/short-line.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
inc2
x

0 comments on commit aa6f6f4

Please sign in to comment.