1
Fork 0

libs: doc comments

This commit is contained in:
Alexander Regueiro 2019-02-09 22:16:58 +00:00
parent b87363e763
commit 99ed06eb88
102 changed files with 394 additions and 387 deletions

View file

@ -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