libs: doc comments
This commit is contained in:
parent
b87363e763
commit
99ed06eb88
102 changed files with 394 additions and 387 deletions
|
@ -260,7 +260,7 @@ mod extern_keyword { }
|
|||
/// }
|
||||
///
|
||||
/// fn generic_where<T>(x: T) -> T
|
||||
/// where T: std::ops::Add<Output=T> + Copy
|
||||
/// where T: std::ops::Add<Output = T> + Copy
|
||||
/// {
|
||||
/// x + x + x
|
||||
/// }
|
||||
|
@ -289,7 +289,7 @@ mod fn_keyword { }
|
|||
/// `for` is primarily used in for-in-loops, but it has a few other pieces of syntactic uses such as
|
||||
/// `impl Trait for Type` (see [`impl`] for more info on that). for-in-loops, or to be more
|
||||
/// precise, iterator loops, are a simple syntactic sugar over an exceedingly common practice
|
||||
/// within Rust, which is to loop over an iterator until that iterator returns None (or `break`
|
||||
/// within Rust, which is to loop over an iterator until that iterator returns `None` (or `break`
|
||||
/// is called).
|
||||
///
|
||||
/// ```rust
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue