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 in documentation #9

Merged
merged 1 commit into from
Nov 22, 2023
Merged
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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This way, more people get a chance to take a look at the code before the public
## Quickstart example

TSV (Tab-Separated Values) is a very simple text-based format for storing a
large number of (uniform) records, such as a list of temparature records or log
large number of (uniform) records, such as a list of temperature records or log
entries.

```
Expand Down Expand Up @@ -94,11 +94,11 @@ commonly Character-Separated Values), it is more than just a small variation.

* TSV always uses a tab stop (`\t`) as a delimiter between fields, CSV uses a
comma (`,`) by default, but some applications use variations such as a
semicolon (`;`) or other application-dependant characters (this is
semicolon (`;`) or other application-dependent characters (this is
particularly common for systems in Europe (and elsewhere) that use a comma as
decimal separator).
* TSV always uses field names in the first row, CSV allows for optional field
names (which is application-dependant).
names (which is application-dependent).
* TSV always uses the same number of fields for all rows, CSV allows for rows
with different number of fields (though this is rarely used).
* CSV requires quoting
Expand All @@ -113,7 +113,7 @@ TSV files are commonly limited to only ASCII characters for best interoperabilit
However, many legacy TSV files often use ISO 8859-1 encoding or some other
variant. Newer TSV files are usually best saved as UTF-8 and may thus also
contain special characters from the Unicode range. The text-encoding is usually
application-dependant, so your best bet would be to convert to (or assume) UTF-8
application-dependent, so your best bet would be to convert to (or assume) UTF-8
consistently.

Despite its shortcomings, TSV is widely used and this is unlikely to change any
Expand Down Expand Up @@ -182,7 +182,7 @@ it will emit an `error` event and then `close` the input stream:

```php
$stream->on('error', function (Exception $error) {
// an error occured, stream will close next
// an error occurred, stream will close next
});
```

Expand Down Expand Up @@ -255,7 +255,7 @@ it will emit an `error` event and then `close` the input stream:

```php
$stream->on('error', function (Exception $error) {
// an error occured, stream will close next
// an error occurred, stream will close next
});
```

Expand Down
2 changes: 1 addition & 1 deletion examples/users.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fifth 1973-01-01 5.1.1.1
sixth 1962-01-01 6.1.1.1
seventh 1951-01-01 7.1.1.1
eighth 1940-01-01 8.1.1.1
nineth 1939-01-01 9.1.1.1
ninth 1939-01-01 9.1.1.1
tenth 1928-01-01