]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
authorYuki Okushi <huyuumi.dev+love@gmail.com>
Sat, 14 Jan 2023 03:04:31 +0000 (12:04 +0900)
committerGitHub <noreply@github.com>
Sat, 14 Jan 2023 03:04:31 +0000 (12:04 +0900)
commit6702f20ca7a117e249d31c96f2c5f48f1bb4eaaa
tree6fc8607df8bd4dca89260ec9a914008411db75be
parenta11eb4f267ddfe4f00cb40bf94aef508c11e0862
parent123e2038d4cd6b29ff3d30cf766e94b67efcb637
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm

reword Option::as_ref and Option::map examples

The description for the examples of `Option::as_ref` and `Option::map` imply that the example is only doing type conversion, when it is actually finding the length of a string.

Changes the wording to imply that some operation is being run on the value contained in the `Option`

closes #104476
library/core/src/option.rs