documentation_attr.rs 472 B

123456789101112
  1. #[doc="With doc attr, each attr contribute to one line of document"]
  2. #[doc="like this one with a new line character at its end"]
  3. #[doc="and this one as well. So they are in the same paragraph"]
  4. #[doc=""]
  5. #[doc="Line ends with one new line\nshould not break"]
  6. #[doc=""]
  7. #[doc="Line ends with two spaces and a new line \nshould break to next line"]
  8. #[doc=""]
  9. #[doc="Line ends with two new lines\n\nShould break to next paragraph"]
  10. #[no_mangle]
  11. pub extern "C" fn root() {
  12. }