Skip to content

Commit

Permalink
Doc comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Dec 13, 2018
1 parent 7d1b19c commit 46c1da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/hair/pattern/_match.rs
Expand Up @@ -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>,
Expand Down

0 comments on commit 46c1da6

Please sign in to comment.