Improve doc comment of destructure_const

This commit is contained in:
Dominik Stolz 2022-06-29 10:30:47 +02:00
parent 053f48d91f
commit d048b15216
2 changed files with 4 additions and 3 deletions

View file

@ -3,8 +3,8 @@ use rustc_target::abi::VariantIdx;
use std::iter;
/// Tries to destructure array, ADT or tuple constants into the constants
/// of its fields.
/// Destructures array, ADT or tuple constants into the constants
/// of their fields.
pub(crate) fn destructure_const<'tcx>(
tcx: TyCtxt<'tcx>,
const_: ty::Const<'tcx>,