all: fix typos (#21089)

This commit is contained in:
Turiiya 2024-03-25 11:18:27 +01:00 committed by GitHub
parent 9ad84ddc21
commit f77bb32044
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
193 changed files with 403 additions and 402 deletions

View file

@ -85,7 +85,7 @@ fn is_marker(data string) (string, string) {
}
// fix_nl returns the data, if it is empty, or if it ends in \n.
// Otherwise it returns data + a final \n addded.
// Otherwise it returns data + a final \n added.
fn fix_nl(data string) string {
if data.len == 0 || data[data.len - 1] == `\n` {
return data