From 9b49ad238db64f66d66a1a6e9c26198abe56cc53 Mon Sep 17 00:00:00 2001 From: Jonas Hietala Date: Tue, 16 Sep 2014 13:27:34 +0200 Subject: doc: Cleanup. Remove ~~~ for code block specification. Use /// Over /** */ for doc blocks. --- src/libstd/bitflags.rs | 8 ++++---- src/libstd/macros.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/bitflags.rs b/src/libstd/bitflags.rs index 3d1bc20cca4..7a7c340c8c5 100644 --- a/src/libstd/bitflags.rs +++ b/src/libstd/bitflags.rs @@ -21,7 +21,7 @@ /// /// # Example /// -/// ~~~rust +/// ```{.rust} /// bitflags! { /// flags Flags: u32 { /// static FlagA = 0x00000001, @@ -41,11 +41,11 @@ /// assert!((e1 - e2) == FlagA); // set difference /// assert!(!e2 == FlagA); // set complement /// } -/// ~~~ +/// ``` /// /// The generated `struct`s can also be extended with type and trait implementations: /// -/// ~~~rust +/// ```{.rust} /// use std::fmt; /// /// bitflags! { @@ -74,7 +74,7 @@ /// assert!(flags.is_empty()); /// assert_eq!(format!("{}", flags).as_slice(), "hi!"); /// } -/// ~~~ +/// ``` /// /// # Attributes /// diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 0ebca006c4c..c11350ea3ac 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -192,7 +192,7 @@ macro_rules! debug_assert_eq( /// /// # Example /// -/// ~~~rust +/// ```{.rust} /// struct Item { weight: uint } /// /// fn choose_weighted_item(v: &[Item]) -> Item { @@ -208,7 +208,7 @@ macro_rules! debug_assert_eq( /// // type checker that it isn't possible to get down here /// unreachable!(); /// } -/// ~~~ +/// ``` #[macro_export] macro_rules! unreachable( () => (fail!("internal error: entered unreachable code")) -- cgit 1.4.1-3-g733a5