Some places use `# Examples` others use `## Examples`: `#`: - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/libstd/collections/hashmap.rs#L692 - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/libstd/rand/mod.rs#L23 - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/libstd/io/mod.rs#L24 `##`: - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/libcollections/slice.rs#L26 - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/liballoc/rc.rs#L26 - https://github.com/rust-lang/rust/blob/4f120e6bafe971452adfede158a7957b00562a4e/src/liballoc/lib.rs#L24 It seems that single `#` is far more popular at the moment: ``` $ git grep ' # ' -- '*.rs' | wc -l 922 $ git grep ' ## ' -- '*.rs' | wc -l 62 ``` cc @steveklabnik
Some places use
# Examplesothers use## Examples:#:rust/src/libstd/collections/hashmap.rs
Line 692 in 4f120e6
rust/src/libstd/rand/mod.rs
Line 23 in 4f120e6
rust/src/libstd/io/mod.rs
Line 24 in 4f120e6
##:rust/src/libcollections/slice.rs
Line 26 in 4f120e6
rust/src/liballoc/rc.rs
Line 26 in 4f120e6
rust/src/liballoc/lib.rs
Line 24 in 4f120e6
It seems that single
#is far more popular at the moment:cc @steveklabnik