Skip to content

Commit b3e051a

Browse files
Rollup merge of #139414 - Adamkob12:fix_typo_raw_list, r=Nadrieril
Fix typo in `RawList`'s documentation
2 parents b1d67b2 + e31d1d5 commit b3e051a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/generic_args.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ 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.
406-
/// The closures get to observe the `GenericArgs` as they're
406+
/// The closures get to observe the [`GenericArgs`] as they're
407407
/// being built, which can be used to correctly
408408
/// replace defaults of generic parameters.
409409
pub fn for_item<F>(tcx: TyCtxt<'tcx>, def_id: DefId, mut mk_kind: F) -> GenericArgsRef<'tcx>

0 commit comments

Comments
 (0)