Rollup merge of #91886 - euclio:option-doc, r=dtolnay

core: minor `Option` doc correction
This commit is contained in:
Matthias Krüger 2021-12-15 08:36:22 +01:00 committed by GitHub
commit e6c495dd59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -512,11 +512,11 @@ use crate::{
#[rustc_diagnostic_item = "Option"]
#[stable(feature = "rust1", since = "1.0.0")]
pub enum Option<T> {
/// No value
/// No value.
#[lang = "None"]
#[stable(feature = "rust1", since = "1.0.0")]
None,
/// Some value `T`
/// Some value of type `T`.
#[lang = "Some"]
#[stable(feature = "rust1", since = "1.0.0")]
Some(#[stable(feature = "rust1", since = "1.0.0")] T),