Use more std:: instead of core:: in docs for consistency, add more intra doc links

This commit is contained in:
Alexis Bourget 2020-12-01 23:09:03 +01:00
parent c4926d01ad
commit 4eb76fcc8e
7 changed files with 20 additions and 17 deletions

View file

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