Fix buf call after put buffer call
This commit is contained in:
parent
b522ab6a75
commit
6ba9e17ebf
2 changed files with 1 additions and 2 deletions
strmangle
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue