]> Cypherpunks repositories - gostls13.git/commit
net/rpc: fix args order in strings.Contains call
authorIskander Sharipov <quasilyte@gmail.com>
Tue, 5 Feb 2019 10:29:29 +0000 (13:29 +0300)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Feb 2019 17:51:35 +0000 (17:51 +0000)
commitb65ab889ab7f4eb69a75de5f774faf386aaf8380
treeea9b0571ce44608adffae44616337b1d4aa9d36c
parent856525ce5c49624fe43d1842a118964d3e38e528
net/rpc: fix args order in strings.Contains call

The old code looks suspicious and is fragile.
It would fail if error messages were not totally the same.
Swapped the arguments order to fix that.

Change-Id: Id5df7242fb9224d0090245286ef8986ebb15e921
Reviewed-on: https://go-review.googlesource.com/c/161157
Run-TryBot: Iskander Sharipov <quasilyte@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/net/rpc/client_test.go