]> git.lizzy.rs Git - rust.git/commitdiff
Describe doc attribute in the reference
authorSteve Klabnik <steve@steveklabnik.com>
Mon, 27 Oct 2014 19:29:17 +0000 (15:29 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 28 Oct 2014 16:11:26 +0000 (12:11 -0400)
FIxes #7963.

src/doc/reference.md

index 11bf895341b90619a4c36308b224e55ecbbf1cf3..db554a805dd08b4c5921ecd8edb233cf8a417673 100644 (file)
@@ -2013,6 +2013,7 @@ On `struct`s:
 - `unsafe_no_drop_flag` - on structs, remove the flag that prevents
   destructors from being run twice. Destructors might be run multiple times on
   the same object with this attribute.
+- `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
 
 ### Conditional compilation