mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
add link for string to as_ref docs
This commit is contained in:
parent
74e7709485
commit
123e2038d4
@ -615,6 +615,7 @@ impl<T> Option<T> {
|
||||
///
|
||||
/// [`map`]: Option::map
|
||||
/// [String]: ../../std/string/struct.String.html "String"
|
||||
/// [`String`]: ../../std/string/struct.String.html "String"
|
||||
///
|
||||
/// ```
|
||||
/// let text: Option<String> = Some("Hello, world!".to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user