Correct some typos

This commit is contained in:
Alexander Seiler 2023-04-21 03:51:31 +02:00
parent 09e86d0ebf
commit 218f29f296
No known key found for this signature in database
GPG key ID: 50E2FE77CB57B3B7
20 changed files with 37 additions and 37 deletions

View file

@ -47,9 +47,9 @@ type sanitizer struct {
addEscape bool
}
// Transform uses a sliding window alogorithm to detect C0 and C1
// Transform uses a sliding window algorithm to detect C0 and C1
// ASCII control sequences as they are read and replaces them
// with equivelent inert characters. Characters that are not part
// with equivalent inert characters. Characters that are not part
// of a control sequence are not modified.
func (t *sanitizer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
lSrc := len(src)