mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Remove unneeded fn main blocks from docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user