☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa1018
/
testdata
/
go1.0
/
CheckStringsReplaceZero
/
CheckStringsReplaceZero.go
☽
☼
staticcheck/sa1018/testdata/go1.0/CheckStringsReplaceZero/CheckStringsReplaceZero.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import "strings"
4
5
func fn() {
6
_ = strings.Replace("", "", "", 0) //@ diag(`calling strings.Replace with n == 0`)
7
_ = strings.Replace("", "", "", -1)
8
_ = strings.Replace("", "", "", 1)
9
}