Skip to content

Commit 473438c

Browse files
committed
Typos
1 parent 958aa0e commit 473438c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,12 @@ func ExampleMapReduce() {
174174
return x + y, nil
175175
},
176176
)
177+
if err != nil {
178+
fmt.Println("Error:", err)
179+
return
180+
}
177181

178-
fmt.Println("Err:", err)
179-
fmt.Println("MapReduce:", mr)
182+
fmt.Println("Result:", mr)
180183
}
181184

182185
// streamFileLines simulates line-by-line streaming of a file from a URL,

0 commit comments

Comments
 (0)