Skip to content

Commit 656389f

Browse files
committed
Fix staticcheck warning
1 parent 84b686b commit 656389f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/examples/basic/convert/strslice_to_ifslice.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ func StringSliceToInterfaceSlice() error {
9191
myInt2 int
9292
)
9393

94-
var i1 myInt1
95-
var i2 myInt2
94+
var (
95+
i1 myInt1
96+
i2 myInt2
97+
)
9698

9799
// これはコンパイルエラー
98100
// 同じ型からのエイリアスであるが、ランタイムから見ると明確に異なる型として認識している

0 commit comments

Comments
 (0)