Skip to content

Commit 3d0ae3b

Browse files
committed
reorgnise
1 parent 34e3fa0 commit 3d0ae3b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

3-profiling/examples/words/main2.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ import (
99
"unicode"
1010
)
1111

12-
func readbyte(r io.Reader) (rune, error) {
13-
var buf [1]byte
14-
_, err := r.Read(buf[:])
15-
return rune(buf[0]), err
16-
}
17-
1812
func main() {
1913
f, err := os.Open(os.Args[1])
2014
if err != nil {
@@ -40,3 +34,9 @@ func main() {
4034
}
4135
fmt.Printf("%q: %d words\n", os.Args[1], words)
4236
}
37+
38+
func readbyte(r io.Reader) (rune, error) {
39+
var buf [1]byte
40+
_, err := r.Read(buf[:])
41+
return rune(buf[0]), err
42+
}

0 commit comments

Comments
 (0)