Fix typo in replace.h (#9679)

occurences -> occurrences
This commit is contained in:
Ikko Ashimine 2021-04-07 00:38:51 +09:00 committed by GitHub
parent 24b9a7a247
commit ebd07d7125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ namespace til
}
// Method Description:
// - This is a function for finding all occurences of a given string
// - This is a function for finding all occurrences of a given string
// `needle` in a larger string `haystack`, and replacing them with the
// string `replacement`.
// - This find/replace is done in-place, leaving `haystack` modified as a result.
@ -50,7 +50,7 @@ namespace til
}
// Method Description:
// - This is a function for finding all occurences of a given string
// - This is a function for finding all occurrences of a given string
// `needle` in a larger string `haystack`, and replacing them with the
// string `replacement`.
// - This find/replace is done on a copy of `haystack`, leaving `haystack`