Commit 44190d1
authored
Editorial: fix readable/writable file stream examples
* Use `fileHandle.close()` to close a FileHandle
* Pass a view to `fileHandle.read()`, since it doesn't accept an ArrayBuffer
* Pass `position` to `fileHandle.read()` instead of relying on implicit file positioning1 parent 5885d94 commit 44190d1
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7302 | 7302 | | |
7303 | 7303 | | |
7304 | 7304 | | |
7305 | | - | |
| 7305 | + | |
7306 | 7306 | | |
7307 | 7307 | | |
7308 | 7308 | | |
7309 | 7309 | | |
7310 | 7310 | | |
7311 | 7311 | | |
7312 | 7312 | | |
7313 | | - | |
| 7313 | + | |
7314 | 7314 | | |
7315 | 7315 | | |
7316 | 7316 | | |
| |||
7350 | 7350 | | |
7351 | 7351 | | |
7352 | 7352 | | |
7353 | | - | |
| 7353 | + | |
7354 | 7354 | | |
7355 | 7355 | | |
7356 | 7356 | | |
| |||
7362 | 7362 | | |
7363 | 7363 | | |
7364 | 7364 | | |
7365 | | - | |
| 7365 | + | |
7366 | 7366 | | |
7367 | 7367 | | |
7368 | 7368 | | |
| |||
7470 | 7470 | | |
7471 | 7471 | | |
7472 | 7472 | | |
7473 | | - | |
| 7473 | + | |
7474 | 7474 | | |
7475 | 7475 | | |
7476 | 7476 | | |
7477 | | - | |
| 7477 | + | |
7478 | 7478 | | |
7479 | 7479 | | |
7480 | 7480 | | |
| |||
7834 | 7834 | | |
7835 | 7835 | | |
7836 | 7836 | | |
| 7837 | + | |
7837 | 7838 | | |
7838 | 7839 | | |
7839 | 7840 | | |
| |||
0 commit comments