add link for string to as_ref docs
This commit is contained in:
parent
74e7709485
commit
123e2038d4
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue