提交 717ac960 编写于 作者: B bors

Auto merge of #39778 - ahmedcharles:docs, r=frewsxcv

Fix some typos in the core::fmt docs.
......@@ -296,7 +296,7 @@ pub fn estimated_capacity(&self) -> usize {
/// 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 @@ pub fn pad_integral(&mut self,
/// * 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册