]> git.lizzy.rs Git - rust.git/commitdiff
Fix docattr to match surrounding text
authorKevin Butler <haqkrs@gmail.com>
Sat, 24 Oct 2015 19:00:58 +0000 (20:00 +0100)
committerKevin Butler <haqkrs@gmail.com>
Sat, 24 Oct 2015 19:00:58 +0000 (20:00 +0100)
As is, this attr would lead to the "///" prefix being in the output text

src/doc/trpl/documentation.md

index 1b4a2be96b5fe35eab5badea6d15f142a9ec11d6..1d266b4af774d0d555b80b2f9cff490430bd22f4 100644 (file)
@@ -518,7 +518,7 @@ are the same, as are these:
 ```rust
 //! this
 
-#![doc="/// this"]
+#![doc="this"]
 ```
 
 You won't often see this attribute used for writing documentation, but it