Fix typos

pull/99/head
Sergey Kiselev 4 years ago
parent 68c8037538
commit 8b3cd45d9e

@ -46,7 +46,7 @@ whole code that follows to work with both `File` or `Stdin`, with all the
The code needs more moving parts than the `Box`-based version:
```
```rust
// We still need to ascribe the type for dynamic dispatch.
let readable: Box<dyn io::Read> = if arg == "-" {
Box::new(io::stdin())

@ -2,8 +2,8 @@
## Description
If a struct takes significant effort to initialize, when writing docs it can be quicker to wrap your example with a
function the struct as an argument.
If a struct takes significant effort to initialize, when writing docs, it can be quicker to wrap your example with a
function which takes the struct as an argument.
## Motivation
Sometimes there is a struct with multiple or complicated parameters and several methods.

@ -113,5 +113,5 @@ RAII is a common pattern in C++: [cppreference.com](http://en.cppreference.com/w
[wikipedia]: https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization
[Style guide enty](http://doc.rust-lang.org/stable/style/ownership/raii.html)
[Style guide entry](https://doc.rust-lang.org/1.0.0/style/ownership/raii.html)
(currently just a placeholder).

Loading…
Cancel
Save