Skip to content

Commit aa6f6f4

Browse files
Add test for removed one character last line in rustdoc
1 parent e8f1d57 commit aa6f6f4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/test/rustdoc/include_str_cut.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![crate_name = "foo"]
2+
#![no_std]
3+
4+
// @has 'foo/fn.foo.html'
5+
// @has - '//*[@class="docblock"]' 'inc2 x'
6+
#[doc = include_str!("short-line.md")]
7+
pub fn foo() {}

src/test/rustdoc/short-line.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inc2
2+
x

0 commit comments

Comments
 (0)