Skip to content

Commit 2f74325

Browse files
committed
auto merge of #15174 : alco/rust/patch-1, r=alexcrichton
2 parents bab614f + beff610 commit 2f74325

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/fmt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ format!("{a:s} {c:d} {b:?}", a="a", b=(), c=3i); // => "a 3 ()"
101101
```
102102
103103
It is illegal to put positional parameters (those without names) after arguments
104-
which have names. Like positional parameters, it is illegal to provided named
105-
parameters that are unused by the format string.
104+
which have names. Like with positional parameters, it is illegal to provide
105+
named parameters that are unused by the format string.
106106
107107
### Argument types
108108
@@ -185,7 +185,7 @@ struct. In order to help with this, the `Formatter` struct also provides some
185185
helper methods.
186186
187187
Additionally, the return value of this function is `fmt::Result` which is a
188-
typedef to `Result<(), IoError>` (also known as `IoError<()>`). Formatting
188+
typedef to `Result<(), IoError>` (also known as `IoResult<()>`). Formatting
189189
implementations should ensure that they return errors from `write!` correctly
190190
(propagating errors upward).
191191

0 commit comments

Comments
 (0)