diff options
| author | Pascal Hertleif <killercup@gmail.com> | 2018-11-29 14:12:40 +0100 |
|---|---|---|
| committer | Pascal Hertleif <killercup@gmail.com> | 2018-12-23 15:41:49 +0100 |
| commit | 2c0f011ca28dbe2941369315bd78a1dbbb7f950e (patch) | |
| tree | 21c55f75d0cae68bbe77d05e278b54f94da3b857 /src/libsyntax/parse | |
| parent | ddab10a692aab2e2984b5c826ed9d78a57e94851 (diff) | |
| download | rust-2c0f011ca28dbe2941369315bd78a1dbbb7f950e.tar.gz rust-2c0f011ca28dbe2941369315bd78a1dbbb7f950e.zip | |
Improve docs for collecting into `Option`s
Changes the original example to use more idiomatic formatting as well as `.checked_add`. Also adds a second example to show a case where the `.collect` returns `None`.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
