Commit cf6dae10be15f44c4b87eef420bdf7b98fdee233
Fixes typos introduced whilst fixing spag in example
Harry Sarson authored on 9/6/2017, 10:05:42 PMGitHub committed on 9/6/2017, 10:05:42 PM
Parent: ded471b9e785f697c3a6a49c606ce9dd88987405
Files changed
docs/examples.md | changed |
docs/examples.md | ||
---|---|---|
@@ -28,16 +28,16 @@ | ||
28 | 28 … | and you must design your system to recover if the download |
29 | 29 … | fails. (For example if the wifi were to cut out). |
30 | 30 … | |
31 | 31 … | The read stream is just the http download, and the sink |
32 | -writes it to a tempory file. If the source ends normally, | |
33 | -the tempory file is moved to the correct location. | |
34 | -If the source errors, the tempory file is deleted. | |
32 … | +writes it to a temporary file. If the source ends normally, | |
33 … | +the temporary file is moved to the correct location. | |
34 … | +If the source errors, the temporary file is deleted. | |
35 | 35 … | |
36 | 36 … | (You could also write the file to the correct location, |
37 | -and delete it if it errors, but the tempory file method has the advantage | |
38 | -that if the computer or process crashes it leaves only a tempory file | |
39 | -and not a file that appears valid. Stray tempory files can be cleaned up | |
37 … | +and delete it if it errors, but the temporary file method has the advantage | |
38 … | +that if the computer or process crashes it leaves only a temporary file | |
39 … | +and not a file that appears valid. Stray temporary files can be cleaned up | |
40 | 40 … | or resumed when the process restarts.) |
41 | 41 … | |
42 | 42 … | # A sink that may fail |
43 | 43 … | |
@@ -86,7 +86,7 @@ | ||
86 | 86 … | Therefore, as it is better to have one callback at the sink, wait until the source |
87 | 87 … | has finished cleaning up before callingback to the pink with an error.) |
88 | 88 … | |
89 | 89 … | In some cases you may want the stream to continue, and the the through stream can just ignore |
90 | -an any linesthat do not parse. An example where you definately | |
90 … | +an any lines that do not parse. An example where you definately | |
91 | 91 … | want a through stream to abort on invalid input would be an encrypted stream, which |
92 | 92 … | should be broken into chunks that are encrypted separately. |
Built with git-ssb-web