about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-02-13 09:04:09 +0000
committerbors <bors@rust-lang.org>2017-02-13 09:04:09 +0000
commit717ac960b51a5a2bbedf0e4da899aec7ab2ab7ee (patch)
treecf917a3790749039f57a5bc63dec1e871cc79649 /src/libcore
parent05a7f25cc42d08aa541f50876915489bdc0eb4bb (diff)
parent9cf4972c8402c2014e85469aca50e5c7dfe1f539 (diff)
downloadrust-717ac960b51a5a2bbedf0e4da899aec7ab2ab7ee.tar.gz
rust-717ac960b51a5a2bbedf0e4da899aec7ab2ab7ee.zip
Auto merge of #39778 - ahmedcharles:docs, r=frewsxcv
Fix some typos in the core::fmt docs.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/fmt/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
index 6c48c29ecd1..e6c9e1ed38e 100644
--- a/src/libcore/fmt/mod.rs
+++ b/src/libcore/fmt/mod.rs
@@ -296,7 +296,7 @@ impl<'a> Arguments<'a> {
 
 /// This structure represents a safely precompiled version of a format string
 /// 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.
 ///
 /// 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
     ///               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")]
     pub fn pad(&mut self, s: &str) -> Result {
         // Make sure there's a fast path up front