add link for string to as_ref docs

This commit is contained in:
Zachary Mayhew 2022-11-26 17:30:17 -08:00
parent 74e7709485
commit 123e2038d4
No known key found for this signature in database
GPG Key ID: 8480D2FB40A25871

View File

@ -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());