]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
library/core/src/option.rs

Simple merge