]> git.lizzy.rs Git - rust.git/commitdiff
Doc comment format
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Thu, 13 Dec 2018 11:23:49 +0000 (12:23 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Thu, 13 Dec 2018 11:23:49 +0000 (12:23 +0100)
src/librustc_mir/hair/pattern/_match.rs

index 2880ffa5891a51dc6c68d055ce8b5819d8894196..6ec82d8496da0312b9bb6fbfd148d7ff010cf477 100644 (file)
@@ -208,11 +208,11 @@ struct LiteralExpander<'a, 'tcx> {
 }
 
 impl<'a, 'tcx> LiteralExpander<'a, 'tcx> {
-    /// Derefs `val` and potentially unsizes the value if `crty` is an array and `rty` a slice
+    /// Derefs `val` and potentially unsizes the value if `crty` is an array and `rty` a slice.
     ///
     /// `crty` and `rty` can differ because you can use array constants in the presence of slice
     /// patterns. So the pattern may end up being a slice, but the constant is an array. We convert
-    /// the array to a slice in that case
+    /// the array to a slice in that case.
     fn fold_const_value_deref(
         &mut self,
         val: ConstValue<'tcx>,