Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 43f8138

Browse files
committed
add test with multiple levels of indents
1 parent 9f6cf7b commit 43f8138

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

tests/source/doc-attrib.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,18 @@ struct A { #[doc = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
88

99

1010
#[doc = "The `nodes` and `edges` method each return instantiations of `Cow<[T]>` to leave implementers the freedom to create entirely new vectors or to pass back slices into internally owned vectors."]
11-
struct B { b: i32 }
11+
struct B { b: i32 }
12+
13+
14+
#[doc = "Level 1 comment"]
15+
mod tests {
16+
#[doc = "Level 2 comment"]
17+
impl A {
18+
#[doc = "Level 3 comment"]
19+
fn f() {
20+
#[doc = "Level 4 comment"]
21+
fn g() {
22+
}
23+
}
24+
}
25+
}

tests/target/doc-attrib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ struct A {
1515
struct B {
1616
b: i32,
1717
}
18+
19+
/// Level 1 comment
20+
mod tests {
21+
/// Level 2 comment
22+
impl A {
23+
/// Level 3 comment
24+
fn f() {
25+
/// Level 4 comment
26+
fn g() {}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)