doc: fix spelling

Co-Authored-By: bzz <bzz@users.noreply.github.com>
This commit is contained in:
M. J. Fromberger 2019-02-21 09:33:17 +01:00 committed by GitHub
parent baefa18475
commit 3a6d42b39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,9 +290,9 @@ func (s *GeneratorTestSuite) TestGenerationFiles() {
}
}
// normalizeSpaces returns a copy of str with whitespaces normalizeds.
// normalizeSpaces returns a copy of str with whitespaces normalized.
// We use this to compare generated source as gofmt format may change.
// E.g for changines beteween Go 1.10 and 1.11 see
// E.g for changes between Go 1.10 and 1.11 see
// https://go-review.googlesource.com/c/go/+/122295/
func normalizeSpaces(str string) string {
return strings.Join(strings.Fields(str), " ")