1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-25 14:22:54 +02:00

fix some typos

This commit is contained in:
Martin Lindhe
2017-10-30 13:27:16 +01:00
committed by Andrew Gallant
parent 8b9eba2147
commit c794ef2f04
5 changed files with 6 additions and 6 deletions

View File

@ -112,12 +112,12 @@ fn read_full<R: io::Read>(
/// A reader that transcodes to UTF-8. The source encoding is determined by
/// inspecting the BOM from the stream read from `R`, if one exists. If a
/// UTF-16 BOM exists, then the source stream is trancoded to UTF-8 with
/// UTF-16 BOM exists, then the source stream is transcoded to UTF-8 with
/// invalid UTF-16 sequences translated to the Unicode replacement character.
/// In all other cases, the underlying reader is passed through unchanged.
///
/// `R` is the type of the underlying reader and `B` is the type of an internal
/// buffer used to store the results of trancoding.
/// buffer used to store the results of transcoding.
///
/// Note that not all methods on `io::Read` work with this implementation.
/// For example, the `bytes` adapter method attempts to read a single byte at

View File

@ -545,7 +545,7 @@ impl fmt::Display for Error {
Error::InvalidFormat(ref original) => {
write!(
f,
"Invalid color speci format: '{}'. Valid format \
"Invalid color spec format: '{}'. Valid format \
is '(path|line|column|match):(fg|bg|style):(value)'.",
original)
}