Merge pull request #1853 from leviding/patch-6

Fix minor typo error
This commit is contained in:
Ilya Kantor 2020-04-29 12:02:15 +03:00 committed by GitHub
commit f0bd80c5ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,8 +61,8 @@ The main methods:
The choice of `read*` method depends on which format we prefer, how we're going to use the data.
- `readAsArrayBuffer` - for binary files, to do low-level binary operations. For high-level operations, like slicing, `File` inherits from `Blob`, so we can call them directly, without reading.
- `readAsText` - for text files, when we'd like to get a string.
- `readAsArrayBuffer` -- for binary files, to do low-level binary operations. For high-level operations, like slicing, `File` inherits from `Blob`, so we can call them directly, without reading.
- `readAsText` -- for text files, when we'd like to get a string.
- `readAsDataURL` -- when we'd like to use this data in `src` for `img` or another tag. There's an alternative to reading a file for that, as discussed in chapter <info:blob>: `URL.createObjectURL(file)`.
As the reading proceeds, there are events: