aboutsummaryrefslogtreecommitdiff
path: root/pkg/util/camelcase/camelcase.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/util/camelcase/camelcase.go')
-rw-r--r--pkg/util/camelcase/camelcase.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/util/camelcase/camelcase.go b/pkg/util/camelcase/camelcase.go
index d27ac00d6..eaf7c0178 100644
--- a/pkg/util/camelcase/camelcase.go
+++ b/pkg/util/camelcase/camelcase.go
@@ -51,10 +51,10 @@ func Split(src string) (entries []string) {
}
entries = []string{}
var runes [][]rune
- lastClass := 0
- class := 0
+ var lastClass int
// split into fields based on class of unicode character
for _, r := range src {
+ var class int
switch {
case unicode.IsLower(r):
class = 1