From 4d43d163df6efe6c9c3f4931100f15500645da18 Mon Sep 17 00:00:00 2001 From: Steve Klabnik <steve@steveklabnik.com> Date: Mon, 27 Oct 2014 15:29:17 -0400 Subject: [PATCH] Describe doc attribute in the reference FIxes #7963. --- src/doc/reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/reference.md b/src/doc/reference.md index 11bf895341b..db554a805dd 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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