Fix code comment typo

This commit is contained in:
Tobie Morgan Hitchcock 2022-07-07 10:55:51 +01:00
parent 3417d152e0
commit 63d099e305

View file

@ -10,7 +10,7 @@ pub fn slug<S: AsRef<str>>(s: S) -> String {
let s = s.as_ref();
// Convert unicode to ascii
let s = deunicode(s);
// Convert strgin to lowercase
// Convert string to lowercase
let s = s.to_ascii_lowercase();
// Replace any non-simple characters
let s = SIMPLES.replace_all(s.as_ref(), "-");