Fix buf call after put buffer call

This commit is contained in:
Patrick O'brien 2016-09-04 09:29:30 +10:00
parent b522ab6a75
commit 6ba9e17ebf
2 changed files with 1 additions and 2 deletions
strmangle

View file

@ -293,6 +293,7 @@ func TitleCaseIdentifier(id string) string {
}
buf := GetBuffer()
defer PutBuffer(buf)
lastDot := 0
ln := len(id)
addDots := false
@ -320,7 +321,6 @@ func TitleCaseIdentifier(id string) string {
}
}
PutBuffer(buf)
return buf.String()
}