Remove unneeded fn main blocks from docs

This commit is contained in:
Lzu Tao
2019-10-01 11:55:46 +00:00
parent d16ee891c6
commit 6c1b447f2e
18 changed files with 263 additions and 369 deletions
+2 -4
View File
@@ -164,10 +164,8 @@
///
/// fn example_func<A: TraitExample>(example_arg: A) {}
///
/// fn main() {
/// let example_string = String::from("example_string");
/// example_func(&example_string);
/// }
/// let example_string = String::from("example_string");
/// example_func(&example_string);
/// ```
///
/// There are two options that would work instead. The first would be to