File tree 4 files changed +52
-0
lines changed
source/configs/normalize_doc_attributes
target/configs/normalize_doc_attributes
4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ // rustfmt-normalize_doc_attributes: false
2
+ // Normalize doc attributes
3
+
4
+ #![ doc = " Example documentation" ]
5
+
6
+ #[ doc = " Example item documentation" ]
7
+ pub enum Foo { }
8
+
9
+ #[ doc = " Lots of space" ]
10
+ pub enum Bar { }
11
+
12
+ #[ doc = "no leading space" ]
13
+ pub mod FooBar { }
Original file line number Diff line number Diff line change
1
+ // rustfmt-normalize_doc_attributes: true
2
+ // Normalize doc attributes
3
+
4
+ #![ doc = " Example documentation" ]
5
+
6
+ #[ doc = " Example item documentation" ]
7
+ pub enum Foo { }
8
+
9
+ #[ doc = " Lots of space" ]
10
+ pub enum Bar { }
11
+
12
+ #[ doc = "no leading space" ]
13
+ pub mod FooBar { }
Original file line number Diff line number Diff line change
1
+ // rustfmt-normalize_doc_attributes: false
2
+ // Normalize doc attributes
3
+
4
+ #![ doc = " Example documentation" ]
5
+
6
+ #[ doc = " Example item documentation" ]
7
+ pub enum Foo { }
8
+
9
+ #[ doc = " Lots of space" ]
10
+ pub enum Bar { }
11
+
12
+ #[ doc = "no leading space" ]
13
+ pub mod FooBar { }
Original file line number Diff line number Diff line change
1
+ // rustfmt-normalize_doc_attributes: true
2
+ // Normalize doc attributes
3
+
4
+ //! Example documentation
5
+
6
+ /// Example item documentation
7
+ pub enum Foo { }
8
+
9
+ /// Lots of space
10
+ pub enum Bar { }
11
+
12
+ ///no leading space
13
+ pub mod FooBar { }
You can’t perform that action at this time.
0 commit comments