Skip to content

Commit e829660

Browse files
committed
Redo README from crate docs
1 parent 94e3bf5 commit e829660

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!-- cargo-rdme start -->
99

10-
[`Fallible`](https://docs.rs/fallible-option/latest/fallible-option/enum.Fallible.html) is an [`Option`](https://doc.rust-lang.org/stable/core/option/enum.Option.html) with inverted [`Try`](https://doc.rust-lang.org/stable/core/ops/trait.Try.html#)-semantics.
10+
[`Fallible`](https://docs.rs/fallible-option/latest/fallible_option/enum.Fallible.html) is an [`Option`](https://doc.rust-lang.org/stable/core/option/enum.Option.html) with inverted [`Try`](https://doc.rust-lang.org/stable/core/ops/trait.Try.html#)-semantics.
1111

1212
What this means is that using the `?` operator on a `Fallible<E>` will exit early
1313
if an error `E` is contained within, or instead act as a no-op, if the value is `Success`.
@@ -26,7 +26,7 @@ This code illustrates how `Fallible` can be used to write succint
2626
validation code which exits early in case of failure.
2727

2828
```rust
29-
use fallible-option::Fallible::{self, Fail, Success};
29+
use fallible_option::Fallible::{self, Fail, Success};
3030

3131
// Validates the input number `n`, returning a `Fail`
3232
// if the input number is zero, or `Success` otherwise.

0 commit comments

Comments
 (0)