Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 3fab94a

Browse files
committed
Fix nightly build
1 parent c1341ea commit 3fab94a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@
233233
//! # fn main() {}
234234
//! # error_chain! { errors { FooError } }
235235
//! fn foo() -> Result<()> {
236-
//! bail!(ErrorKind::FooError);
237-
//!
238-
//! Ok(())
236+
//! if true {
237+
//! bail!(ErrorKind::FooError);
238+
//! } else {
239+
//! Ok(())
240+
//! }
239241
//! }
240242
//!
241243
//! fn bar() -> Result<()> {

0 commit comments

Comments
 (0)