File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -608,10 +608,10 @@ impl<T> Option<T> {
608
608
///
609
609
/// # Examples
610
610
///
611
- /// Converts an <code>Option<[String]></code> into an <code>Option<[usize]></code>, preserving
612
- /// the original . The [`map`] method takes the `self` argument by value, consuming the original ,
613
- /// so this technique uses `as_ref` to first take an `Option` to a reference
614
- /// to the value inside the original.
611
+ /// Calculates the length of an <code>Option<[String]></code> as an <code>Option<[usize]></code>
612
+ /// without moving the [`String`] . The [`map`] method takes the `self` argument by value,
613
+ /// consuming the original, so this technique uses `as_ref` to first take an `Option` to a
614
+ /// reference to the value inside the original.
615
615
///
616
616
/// [`map`]: Option::map
617
617
/// [String]: ../../std/string/struct.String.html "String"
@@ -902,8 +902,8 @@ impl<T> Option<T> {
902
902
///
903
903
/// # Examples
904
904
///
905
- /// Converts an <code>Option<[String]></code> into an <code>Option<[usize ]></code>, consuming
906
- /// the original:
905
+ /// Calculates the length of an <code>Option<[String ]></code> as an
906
+ /// <code>Option<[usize]></code>, consuming the original:
907
907
///
908
908
/// [String]: ../../std/string/struct.String.html "String"
909
909
/// ```
You can’t perform that action at this time.
0 commit comments