Skip to content

Commit 66a2730

Browse files
committed
Fix Typo
1 parent 0e9c3e5 commit 66a2730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/generic_args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ impl<'tcx> GenericArgs<'tcx> {
396396
InlineConstArgs { args: self }
397397
}
398398

399-
/// Creates an `GenericArgs` that maps each generic parameter to itself.
399+
/// Creates a `GenericArgs` that maps each generic parameter to itself.
400400
pub fn identity_for_item(tcx: TyCtxt<'tcx>, def_id: impl Into<DefId>) -> GenericArgsRef<'tcx> {
401401
Self::for_item(tcx, def_id.into(), |param, _| tcx.mk_param_from_def(param))
402402
}
403403

404-
/// Creates an `GenericArgs` for generic parameter definitions,
404+
/// Creates a `GenericArgs` for generic parameter definitions,
405405
/// by calling closures to obtain each kind.
406406
/// The closures get to observe the `GenericArgs` as they're
407407
/// being built, which can be used to correctly

0 commit comments

Comments
 (0)