diff options
| author | Yoshito Komatsu <ykomatsu@akaumigame.org> | 2015-10-19 14:23:51 +0900 |
|---|---|---|
| committer | Yoshito Komatsu <ykomatsu@akaumigame.org> | 2015-10-19 14:23:51 +0900 |
| commit | 5a15144b95201b1cc054138e4473c742da7f1ab5 (patch) | |
| tree | 4ee1287e749e0907cb1763ae5816df56516bdde4 | |
| parent | 5122a6d9360b5d9c682a261875fb5959df1b9e38 (diff) | |
| download | rust-5a15144b95201b1cc054138e4473c742da7f1ab5.tar.gz rust-5a15144b95201b1cc054138e4473c742da7f1ab5.zip | |
Change to avoid repeated "is"
| -rw-r--r-- | src/doc/trpl/error-handling.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index a2320a82846..bbc827a0d0e 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -279,11 +279,11 @@ fn extension(file_name: &str) -> Option<&str> { } ``` -One other pattern that we find it very common is assigning a default value to -the case when an `Option` value is `None`. For example, maybe your program -assumes that the extension of a file is `rs` even if none is present. As you -might imagine, the case analysis for this is not specific to file -extensions - it can work with any `Option<T>`: +One other pattern we commonly find is assigning a default value to the case +when an `Option` value is `None`. For example, maybe your program assumes that +the extension of a file is `rs` even if none is present. As you might imagine, +the case analysis for this is not specific to file extensions - it can work +with any `Option<T>`: ```rust fn unwrap_or<T>(option: Option<T>, default: T) -> T { |
