mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 09:57:43 +00:00
Auto merge of #39778 - ahmedcharles:docs, r=frewsxcv
Fix some typos in the core::fmt docs.
This commit is contained in:
commit
717ac960b5
@ -296,7 +296,7 @@ impl<'a> Arguments<'a> {
|
|||||||
|
|
||||||
/// This structure represents a safely precompiled version of a format string
|
/// This structure represents a safely precompiled version of a format string
|
||||||
/// and its arguments. This cannot be generated at runtime because it cannot
|
/// and its arguments. This cannot be generated at runtime because it cannot
|
||||||
/// safely be done so, so no constructors are given and the fields are private
|
/// safely be done, so no constructors are given and the fields are private
|
||||||
/// to prevent modification.
|
/// 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
|
||||||
@ -997,7 +997,7 @@ impl<'a> Formatter<'a> {
|
|||||||
/// * precision - the maximum length to emit, the string is truncated if it
|
/// * precision - the maximum length to emit, the string is truncated if it
|
||||||
/// is longer than this length
|
/// is longer than this length
|
||||||
///
|
///
|
||||||
/// Notably this function ignored the `flag` parameters
|
/// Notably this function ignores the `flag` parameters.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn pad(&mut self, s: &str) -> Result {
|
pub fn pad(&mut self, s: &str) -> Result {
|
||||||
// Make sure there's a fast path up front
|
// Make sure there's a fast path up front
|
||||||
|
Loading…
Reference in New Issue
Block a user