File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ impl<'h> Input<'h> {
110
110
/// Create a new search configuration for the given haystack.
111
111
#[ inline]
112
112
pub fn new < H : ?Sized + AsRef < [ u8 ] > > ( haystack : & ' h H ) -> Input < ' h > {
113
- // Perform only one call to `haystack.as_ref()` to protect from malicious
113
+ // Perform only one call to `haystack.as_ref()` to protect from incorrect
114
114
// implementations that return different values from multiple calls.
115
115
// This is important because there's code that relies on `span` not being
116
116
// out of bounds with respect to the stored `haystack`.
@@ -1973,7 +1973,7 @@ mod tests {
1973
1973
}
1974
1974
1975
1975
#[ test]
1976
- fn malicious_asref_guard ( ) {
1976
+ fn incorrect_asref_guard ( ) {
1977
1977
struct Bad ( std:: cell:: Cell < bool > ) ;
1978
1978
1979
1979
impl AsRef < [ u8 ] > for Bad {
You can’t perform that action at this time.
0 commit comments