about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-14 10:31:04 +0100
committerGitHub <noreply@github.com>2022-12-14 10:31:04 +0100
commita270aeee7f9148b2a1ede17d928bd9632ea362ba (patch)
tree3c9fa9e846936d9bac491a51016652516a4861f2 /src/test/rustdoc-ui/coverage/enum-tuple.rs
parent309c469eece74cd9b83328d18302f1a177d0df7f (diff)
parente0fd37dcf79c8624092ccd0e1463cd239074ec83 (diff)
downloadrust-a270aeee7f9148b2a1ede17d928bd9632ea362ba.tar.gz
rust-a270aeee7f9148b2a1ede17d928bd9632ea362ba.zip
Rollup merge of #103644 - catlee:catlee/option-question-mark-docs, r=workingjubilee
Add docs for question mark operator for Option

As a beginner learning rust, it took me a while to figure out what `?` was doing with Options. I think the documentation of this could be improved.

I've used the question mark documentation from the `Result` type as a template here, and tried to come up with a simple example as well.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions