about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorPascal Hertleif <killercup@gmail.com>2018-11-29 14:12:40 +0100
committerPascal Hertleif <killercup@gmail.com>2018-12-23 15:41:49 +0100
commit2c0f011ca28dbe2941369315bd78a1dbbb7f950e (patch)
tree21c55f75d0cae68bbe77d05e278b54f94da3b857 /src/liballoc
parentddab10a692aab2e2984b5c826ed9d78a57e94851 (diff)
downloadrust-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/liballoc')
0 files changed, 0 insertions, 0 deletions