Skip to content

Commit 717ac96

Browse files
committed
Auto merge of rust-lang#39778 - ahmedcharles:docs, r=frewsxcv
Fix some typos in the core::fmt docs.
2 parents 05a7f25 + 9cf4972 commit 717ac96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/fmt/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl<'a> Arguments<'a> {
296296

297297
/// This structure represents a safely precompiled version of a format string
298298
/// and its arguments. This cannot be generated at runtime because it cannot
299-
/// safely be done so, so no constructors are given and the fields are private
299+
/// safely be done, so no constructors are given and the fields are private
300300
/// to prevent modification.
301301
///
302302
/// The [`format_args!`] macro will safely create an instance of this structure
@@ -997,7 +997,7 @@ impl<'a> Formatter<'a> {
997997
/// * precision - the maximum length to emit, the string is truncated if it
998998
/// is longer than this length
999999
///
1000-
/// Notably this function ignored the `flag` parameters
1000+
/// Notably this function ignores the `flag` parameters.
10011001
#[stable(feature = "rust1", since = "1.0.0")]
10021002
pub fn pad(&mut self, s: &str) -> Result {
10031003
// Make sure there's a fast path up front

0 commit comments

Comments
 (0)