diff options
| author | bors <bors@rust-lang.org> | 2016-09-18 17:25:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-18 17:25:01 -0700 |
| commit | bfac5d6d9fd2e0f7484d45ac29997e17bb41e7c5 (patch) | |
| tree | ad5b8e6833329fcf595cf26c270c7c68b75f2a86 /src/libcore | |
| parent | 55bf6a4f870cda7afddea7c6ca2b3ee9aac23ca2 (diff) | |
| parent | ad6321573259f5877c9186fb084b7273d89dde71 (diff) | |
| download | rust-bfac5d6d9fd2e0f7484d45ac29997e17bb41e7c5.tar.gz rust-bfac5d6d9fd2e0f7484d45ac29997e17bb41e7c5.zip | |
Auto merge of #36523 - Mark-Simulacrum:format-args-link, r=GuillaumeGomez
Add links between format_args! macro and std::fmt::Arguments struct r? @GuillaumeGomez
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 66ef92928eb..8342d663cdc 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -272,10 +272,14 @@ impl<'a> Arguments<'a> { /// safely be done so, so no constructors are given and the fields are private /// to prevent modification. /// -/// The `format_args!` macro will safely create an instance of this structure +/// The [`format_args!`] macro will safely create an instance of this structure /// and pass it to a function or closure, passed as the first argument. The -/// macro validates the format string at compile-time so usage of the `write` -/// and `format` functions can be safely performed. +/// macro validates the format string at compile-time so usage of the [`write`] +/// and [`format`] functions can be safely performed. +/// +/// [`format_args!`]: ../../std/macro.format_args.html +/// [`format`]: ../../std/fmt/fn.format.html +/// [`write`]: ../../std/fmt/fn.write.html #[stable(feature = "rust1", since = "1.0.0")] #[derive(Copy, Clone)] pub struct Arguments<'a> { |
