File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
internal/examples/basic/sorts Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func SortSliceUnStable() error {
2828 // スライス以外を渡すと panic する。
2929 // -----------------------------------------------
3030 var (
31- sli1 = make ([]int , 0 , 0 )
31+ sli1 = make ([]int , 0 )
3232 )
3333
3434 for i := 10 ; i > 0 ; i -- {
@@ -53,6 +53,7 @@ func SortSliceUnStable() error {
5353 }()
5454
5555 s := "helloworld"
56+ //lint:ignore SA1028 It's ok because this is just a example.
5657 sort .Slice (s , func (i , j int ) bool {
5758 return s [i ] < s [j ]
5859 })
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func SortSliceStable() error {
2828 // スライス以外を渡すと panic する。
2929 // -----------------------------------------------
3030 var (
31- sli1 = make ([]int , 0 , 0 )
31+ sli1 = make ([]int , 0 )
3232 )
3333
3434 for i := 10 ; i > 0 ; i -- {
You can’t perform that action at this time.
0 commit comments