Fix typos

This commit is contained in:
Laurențiu Nicola
2022-11-07 12:53:33 +02:00
parent f54c313914
commit cff7ab1308
7 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ impl LineEndings {
loop {
let idx = match find_crlf(&tail[gap_len..]) {
None if crlf_seen => tail.len(),
// SAFETY: buf is unchanged and therefor still contains utf8 data
// SAFETY: buf is unchanged and therefore still contains utf8 data
None => return (unsafe { String::from_utf8_unchecked(buf) }, LineEndings::Unix),
Some(idx) => {
crlf_seen = true;