Skip to content

Commit aa635b6

Browse files
Correct syntax error in select.md (#745)
In the previous section, an error return was added to the `Racer()` function. In the text underneath this code block, there is a note that says. "Note that we've also handled the error return in our original text, we're using `_` for now to ensure the tests will run. I think the error was not actually ignored with an underscore as you intended.
1 parent 22780a6 commit aa635b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

select.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func TestRacer(t *testing.T) {
269269
fastURL := fastServer.URL
270270

271271
want := fastURL
272-
got, err := Racer(slowURL, fastURL)
272+
got, _ := Racer(slowURL, fastURL)
273273

274274
if got != want {
275275
t.Errorf("got %q, want %q", got, want)

0 commit comments

Comments
 (0)