OLD | NEW |
1 // errchk $G $D/$F.go | 1 // errorcheck |
2 | 2 |
3 // Copyright 2011 The Go Authors. All rights reserved. | 3 // Copyright 2011 The Go Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
6 | 6 |
7 package p | 7 package p |
8 | 8 |
9 func f() (_ int, err error) { | 9 func f() (_ int, err error) { |
10 return | 10 return |
11 } | 11 } |
(...skipping 18 matching lines...) Expand all Loading... |
30 return 1, nil | 30 return 1, nil |
31 } | 31 } |
32 | 32 |
33 func h1() (_ int, _ error) { | 33 func h1() (_ int, _ error) { |
34 return 1, nil | 34 return 1, nil |
35 } | 35 } |
36 | 36 |
37 func ii() (int, error) { | 37 func ii() (int, error) { |
38 return 1, nil | 38 return 1, nil |
39 } | 39 } |
OLD | NEW |