Fix link to map documentation in example

Co-authored-by: Timo <timorcb@gmail.com>
This commit is contained in:
Faris Sufyan 2020-05-10 18:06:30 +08:00 committed by GitHub
parent 2badd41d04
commit d80ac6416d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1380,7 +1380,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
/// so this technique uses `as_ref` to first take an `Option` to a reference
/// to the value inside the original.
///
/// [`map`]: enum.Option.html#method.map
/// [`map`]: ../../std/option/enum.Option.html#method.map
/// [`String`]: ../../std/string/struct.String.html
/// [`usize`]: ../../std/primitive.usize.html
///