You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Misleading documentation in std::option module #64844
Rust's pointer types must always point to a valid location; there are no "null" pointers.
Which is obviously wrong. There are no null references (&T), but there may be raw null pointers (*const T).
Maybe the docs should have used the terminology of smart pointers, which would be less misleading and be correct 😄
Activity
steveklabnik commentedon Sep 28, 2019
I'd accept a PR to change "pointer" to "reference" here.
Fixed a misleading documentation issue rust-lang#64844
Rollup merge of rust-lang#64911 - hman523:64844, r=Dylan-DPC
Rollup merge of rust-lang#64911 - hman523:64844, r=Dylan-DPC
srinivasreddy commentedon Nov 11, 2019
I think we can close this.