diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
| commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
| tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /doc/codewalk/markov.xml | |
| parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
| download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz | |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
Diffstat (limited to 'doc/codewalk/markov.xml')
| -rw-r--r-- | doc/codewalk/markov.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/codewalk/markov.xml b/doc/codewalk/markov.xml index a89b4d0ce..81df1289c 100644 --- a/doc/codewalk/markov.xml +++ b/doc/codewalk/markov.xml @@ -105,7 +105,7 @@ Prefix Map key reads space-separated values from an <code>io.Reader</code>. <br/><br/> The <code>Build</code> method returns once the <code>Reader</code>'s - <code>Read</code> method returns <code>os.EOF</code> (end of file) + <code>Read</code> method returns <code>io.EOF</code> (end of file) or some other read error occurs. </step> @@ -133,7 +133,7 @@ Prefix Map key (including punctuation), which is exactly what we need. <br/><br/> <code>Fscan</code> returns an error if it encounters a read error - (<code>os.EOF</code>, for example) or if it can't scan the requested + (<code>io.EOF</code>, for example) or if it can't scan the requested value (in our case, a single string). In either case we just want to stop scanning, so we <code>break</code> out of the loop. </step> |
