Use more std:: instead of core:: in docs for consistency, add more intra doc links
This commit is contained in:
parent
c4926d01ad
commit
4eb76fcc8e
7 changed files with 20 additions and 17 deletions
|
@ -198,7 +198,7 @@ mod prim_bool {}
|
|||
/// words, they can't return `!` from every code path. As an example, this code doesn't compile:
|
||||
///
|
||||
/// ```compile_fail
|
||||
/// use core::ops::Add;
|
||||
/// use std::ops::Add;
|
||||
///
|
||||
/// fn foo() -> impl Add<u32> {
|
||||
/// unimplemented!()
|
||||
|
@ -208,7 +208,7 @@ mod prim_bool {}
|
|||
/// But this code does:
|
||||
///
|
||||
/// ```
|
||||
/// use core::ops::Add;
|
||||
/// use std::ops::Add;
|
||||
///
|
||||
/// fn foo() -> impl Add<u32> {
|
||||
/// if true {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue