diff options
Diffstat (limited to 'src/runtime/debug/stack_test.go')
| -rw-r--r-- | src/runtime/debug/stack_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debug/stack_test.go b/src/runtime/debug/stack_test.go index f54437231b..9376e82b84 100644 --- a/src/runtime/debug/stack_test.go +++ b/src/runtime/debug/stack_test.go @@ -59,7 +59,7 @@ func TestStack(t *testing.T) { } func check(t *testing.T, line, has string) { - if strings.Index(line, has) < 0 { + if !strings.Contains(line, has) { t.Errorf("expected %q in %q", has, line) } } |
