Skip to content

Commit 5a15144

Browse files
committed
Change to avoid repeated "is"
1 parent 5122a6d commit 5a15144

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/trpl/error-handling.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ fn extension(file_name: &str) -> Option<&str> {
279279
}
280280
```
281281

282-
One other pattern that we find it very common is assigning a default value to
283-
the case when an `Option` value is `None`. For example, maybe your program
284-
assumes that the extension of a file is `rs` even if none is present. As you
285-
might imagine, the case analysis for this is not specific to file
286-
extensions - it can work with any `Option<T>`:
282+
One other pattern we commonly find is assigning a default value to the case
283+
when an `Option` value is `None`. For example, maybe your program assumes that
284+
the extension of a file is `rs` even if none is present. As you might imagine,
285+
the case analysis for this is not specific to file extensions - it can work
286+
with any `Option<T>`:
287287

288288
```rust
289289
fn unwrap_or<T>(option: Option<T>, default: T) -> T {

0 commit comments

Comments
 (0)