mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-14 16:07:17 +00:00
Corrected typos
Corrected typos
This commit is contained in:
parent
00af9d15c0
commit
d233cab25d
4 changed files with 9 additions and 9 deletions
|
@ -862,7 +862,7 @@ fn run() -> Result<()> {
|
|||
|
||||
[![ring-badge]][ring] [![cat-cryptography-badge]][cat-cryptography]
|
||||
|
||||
Uses [`ring::hmac`] to creates a [`hmac::Signature`] of a string then verifies the signiture is correct.
|
||||
Uses [`ring::hmac`] to creates a [`hmac::Signature`] of a string then verifies the signature is correct.
|
||||
|
||||
```rust
|
||||
# #[macro_use]
|
||||
|
@ -1105,8 +1105,8 @@ print a backtrace. It relies on [`chain_err`] to extend errors by
|
|||
appending new errors. The error stack can be unwinded, thus providing
|
||||
a better context to understand why an error was raised.
|
||||
|
||||
The below recipes attemps to deserialize the value `256` into a
|
||||
`u8`. An error will bubble up from Serde then csv and finaly up to the
|
||||
The below recipes attempts to deserialize the value `256` into a
|
||||
`u8`. An error will bubble up from Serde then csv and finally up to the
|
||||
user code.
|
||||
|
||||
```rust
|
||||
|
|
|
@ -81,7 +81,7 @@ fn main() {
|
|||
[![rayon-badge]][rayon] [![cat-concurrency-badge]][cat-concurrency]
|
||||
|
||||
This example uses [`rayon::filter`], [`rayon::map`], and [`rayon::reduce`]
|
||||
to calculate the coniditional average age of a vector of `Person` objects.
|
||||
to calculate the conditional average age of a vector of `Person` objects.
|
||||
|
||||
[`rayon::filter`] allows us to (in parallel) conditionally include elements from
|
||||
a collection that satisfy the given predicate. Similarly, [`rayon::map`] and
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
| [Encode and decode hex][ex-hex-encode-decode] | [![data-encoding-badge]][data-encoding] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Encode and decode base64][ex-base64] | [![base64-badge]][base64] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records][ex-csv-read] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records with different delimeter][ex-csv-delimiter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records with different delimiter][ex-csv-delimiter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Filter CSV records matching a predicate][ex-csv-filter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Handle invalid CSV data with Serde][ex-invalid-csv] | [![csv-badge]][csv] [![serde-badge]][serde] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Serialize records to CSV][ex-serialize-csv] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
|
@ -356,8 +356,8 @@ fn run() -> Result<()> {
|
|||
[![csv-badge]][csv] [![cat-encoding-badge]][cat-encoding]
|
||||
|
||||
Reads standard CSV records into [`csv::StringRecord`] — a weakly typed
|
||||
data representation. It expects to read valid UTF-8 rows. One the
|
||||
ohter hand, if invalid UTF-8 data has to be read, then prefer using
|
||||
data representation. It expects to read valid UTF-8 rows. On the
|
||||
other hand, if invalid UTF-8 data has to be read, then prefer using
|
||||
[`csv::ByteRecord`], since it makes no assumptions about UTF-8.
|
||||
|
||||
```rust
|
||||
|
@ -445,7 +445,7 @@ fn run() -> Result<()> {
|
|||
|
||||
[ex-csv-delimiter]: #ex-csv-delimiter
|
||||
<a name="ex-csv-delimiter"></a>
|
||||
## Read CSV records with different delimeter
|
||||
## Read CSV records with different delimiter
|
||||
|
||||
[![csv-badge]][csv] [![cat-encoding-badge]][cat-encoding]
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ community. It needs and welcomes help. For details see
|
|||
| [Encode and decode hex][ex-hex-encode-decode] | [![data-encoding-badge]][data-encoding] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Encode and decode base64][ex-base64] | [![base64-badge]][base64] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records][ex-csv-read] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records with different delimeter][ex-csv-delimiter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Read CSV records with different delimiter][ex-csv-delimiter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Filter CSV records matching a predicate][ex-csv-filter] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Handle invalid CSV data with Serde][ex-invalid-csv] | [![csv-badge]][csv] [![serde-badge]][serde] | [![cat-encoding-badge]][cat-encoding] |
|
||||
| [Serialize records to CSV][ex-serialize-csv] | [![csv-badge]][csv] | [![cat-encoding-badge]][cat-encoding] |
|
||||
|
|
Loading…
Reference in a new issue