Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #373

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions csv-core/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ pub enum ReadRecordResult {
/// The caller provided output buffer was filled before an entire field
/// could be written to it.
OutputFull,
/// The caller provided output buffer of field end poisitions was filled
/// The caller provided output buffer of field end positions was filled
/// before the next field could be parsed.
OutputEndsFull,
/// The end of a record was found.
Expand Down Expand Up @@ -1077,7 +1077,7 @@ impl Reader {
/// The number of transition classes is determined by an equivalence class of
/// bytes, where every byte in the same equivalence classes is
/// indistinguishable from any other byte with respect to the DFA. For example,
/// if neither `a` nor `b` are specifed as a delimiter/quote/terminator/escape,
/// if neither `a` nor `b` are specified as a delimiter/quote/terminator/escape,
/// then the DFA will never discriminate between `a` or `b`, so they can
/// effectively be treated as identical. This reduces storage space
/// substantially.
Expand Down Expand Up @@ -1902,7 +1902,7 @@ mod tests {
assert_read!(rdr, b("\"foo"), out, 4, 3, InputEmpty);
assert_eq!(&out[..3], b("foo"));

// Without reseting the parser state, the reader will remember that
// Without resetting the parser state, the reader will remember that
// we're in a quoted field, and therefore interpret the leading double
// quotes below as a single quote and the trailing quote as a matching
// terminator. With the reset, however, the parser forgets the quoted
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Error {
pub enum ErrorKind {
/// An I/O error that occurred while reading CSV data.
Io(io::Error),
/// A UTF-8 decoding error that occured while reading CSV data into Rust
/// A UTF-8 decoding error that occurred while reading CSV data into Rust
/// `String`s.
Utf8 {
/// The position of the record in which this error occurred, if
Expand Down
4 changes: 2 additions & 2 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ impl<R: io::Read> Reader<R> {
/// default), then this will never read the first record.
///
/// This method is useful when you want to read records as fast as
/// as possible. It's less ergonomic than an iterator, but it permits the
/// possible. It's less ergonomic than an iterator, but it permits the
/// caller to reuse the `StringRecord` allocation, which usually results
/// in higher throughput.
///
Expand Down Expand Up @@ -2253,7 +2253,7 @@ mod tests {
}

#[test]
fn read_trimed_header_invalid_utf8() {
fn read_trimmed_header_invalid_utf8() {
let data = &b"foo, b\xFFar,\tbaz\na,b,c\nd,e,f"[..];
let mut rdr = ReaderBuilder::new()
.has_headers(true)
Expand Down
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ mod tests {
let got = wtr.into_inner().unwrap().to_str();

// As the buffer size is 4 we should write each record separately, and
// flush when explicitly called and implictly in into_inner.
// flush when explicitly called and implicitly in into_inner.
assert_eq!(got, ">a,b\n<>c,d\n<!>e,f\n<!");
}

Expand Down