Skip to content

Commit 7ae224a

Browse files
committed
Fix missing return branch.
Fix doc tests.
1 parent 028f4e1 commit 7ae224a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub fn initialize(_argc: *const isize, _argv: *const *const *const u8) -> isize
149149
/// let value = parts[1];
150150
/// let _result: Result<_, _> = my_crate::parse(key, value);
151151
/// Corpus::Keep
152-
/// );
152+
/// });
153153
/// # mod my_crate { pub fn parse(_key: &str, _value: &str) -> Result<(), ()> { unimplemented!() } }
154154
/// ```
155155
///
@@ -218,7 +218,7 @@ macro_rules! fuzz_target {
218218
.expect("failed to create `RUST_LIBFUZZER_DEBUG_PATH` file");
219219
writeln!(&mut file, "{:?}", bytes)
220220
.expect("failed to write to `RUST_LIBFUZZER_DEBUG_PATH` file");
221-
return;
221+
return 0;
222222
}
223223

224224
run(bytes);

0 commit comments

Comments
 (0)