Skip to content

Commit 1aa53e0

Browse files
committed
Change example to use str::as_bytes instead of array comparison
See #90.
1 parent d4d1c46 commit 1aa53e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use libfuzzer_sys::fuzz_target;
44

55
fuzz_target!(|data: &[u8]| {
6-
if data == b"banana!" {
6+
if data == "banana!".as_bytes() {
77
panic!("success!");
88
}
99
});

0 commit comments

Comments
 (0)