Use more intra-doc-links in `core::fmt`
This commit is contained in:
parent
a835b483fe
commit
17d3c0a178
|
@ -102,7 +102,7 @@ pub struct Error;
|
||||||
/// library. The [`write!`] macro accepts an instance of [`io::Write`], and the
|
/// library. The [`write!`] macro accepts an instance of [`io::Write`], and the
|
||||||
/// [`io::Write`] trait is favored over implementing this trait.
|
/// [`io::Write`] trait is favored over implementing this trait.
|
||||||
///
|
///
|
||||||
/// [`write!`]: ../../std/macro.write.html
|
/// [`write!`]: crate::write!
|
||||||
/// [`io::Write`]: ../../std/io/trait.Write.html
|
/// [`io::Write`]: ../../std/io/trait.Write.html
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait Write {
|
pub trait Write {
|
||||||
|
@ -1058,7 +1058,7 @@ pub trait UpperExp {
|
||||||
/// assert_eq!(output, "Hello world!");
|
/// assert_eq!(output, "Hello world!");
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`write!`]: ../../std/macro.write.html
|
/// [`write!`]: crate::write!
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn write(output: &mut dyn Write, args: Arguments<'_>) -> Result {
|
pub fn write(output: &mut dyn Write, args: Arguments<'_>) -> Result {
|
||||||
let mut formatter = Formatter {
|
let mut formatter = Formatter {
|
||||||
|
@ -1886,7 +1886,7 @@ impl<'a> Formatter<'a> {
|
||||||
/// assert_eq!(format!("{:?}", Foo(vec![10, 11])), "{10, 11}");
|
/// assert_eq!(format!("{:?}", Foo(vec![10, 11])), "{10, 11}");
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`format_args!`]: ../../std/macro.format_args.html
|
/// [`format_args!`]: crate::format_args
|
||||||
///
|
///
|
||||||
/// In this more complex example, we use [`format_args!`] and `.debug_set()`
|
/// In this more complex example, we use [`format_args!`] and `.debug_set()`
|
||||||
/// to build a list of match arms:
|
/// to build a list of match arms:
|
||||||
|
|
Loading…
Reference in New Issue