1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:56:12 -07:00

format someErr

This commit is contained in:
ZYunH 2019-10-25 15:39:54 +08:00
parent 4f70c151db
commit 6ca1b3edb4

View File

@ -28,7 +28,7 @@ func TestDo(t *testing.T) {
func TestDoErr(t *testing.T) {
var g Group
someErr := errors.New("Some error")
someErr := errors.New("some error")
v, err, _ := g.Do("key", func() (interface{}, error) {
return nil, someErr
})