Update 'src/lib.rs'

This commit is contained in:
delta 2022-11-21 15:22:39 -06:00
parent fd0231a558
commit 09055345fb

View file

@ -80,7 +80,7 @@ impl <'a> LuaPattern<'a> {
} }
pub fn as_str(self) -> String { pub fn as_str(self) -> String {
String::from_utf8_lossy(self.patt) String::from_utf8_lossy(self.patt).to_string()
} }
/// Match a slice of bytes with a pattern /// Match a slice of bytes with a pattern