assert: s/rune/r/ to avoid "rune" predeclared ident shadowing #642

Thanks @quasllyte
pull/993/head
Martijn 2020-07-31 17:16:21 +02:00 committed by Boyan Soubachov
parent ed4976c764
commit a3bed97cf3
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ func isTest(name, prefix string) bool {
if len(name) == len(prefix) { // "Test" is ok
return true
}
rune, _ := utf8.DecodeRuneInString(name[len(prefix):])
return !unicode.IsLower(rune)
r, _ := utf8.DecodeRuneInString(name[len(prefix):])
return !unicode.IsLower(r)
}
func messageFromMsgAndArgs(msgAndArgs ...interface{}) string {