@@ -299,7 +299,7 @@ impl<'hir> ConstArg<'hir, AmbigArg> {
299
299
}
300
300
301
301
impl < ' hir > ConstArg < ' hir > {
302
- /// Converts a `ConstArg` in an unambigous position to one in an ambiguous position. This is
302
+ /// Converts a `ConstArg` in an unambiguous position to one in an ambiguous position. This is
303
303
/// fallible as the [`ConstArgKind::Infer`] variant is not present in ambiguous positions.
304
304
///
305
305
/// Functions accepting ambiguous consts will not handle the [`ConstArgKind::Infer`] variant, if
@@ -368,7 +368,7 @@ pub enum GenericArg<'hir> {
368
368
Lifetime ( & ' hir Lifetime ) ,
369
369
Type ( & ' hir Ty < ' hir , AmbigArg > ) ,
370
370
Const ( & ' hir ConstArg < ' hir , AmbigArg > ) ,
371
- /// Inference variables in [`GenericArg`] are always represnted by
371
+ /// Inference variables in [`GenericArg`] are always represented by
372
372
/// `GenericArg::Infer` instead of the `Infer` variants on [`TyKind`] and
373
373
/// [`ConstArgKind`] as it is not clear until hir ty lowering whether a
374
374
/// `_` argument is a type or const argument.
@@ -3136,7 +3136,7 @@ impl<'hir> Ty<'hir, AmbigArg> {
3136
3136
}
3137
3137
3138
3138
impl < ' hir > Ty < ' hir > {
3139
- /// Converts a `Ty` in an unambigous position to one in an ambiguous position. This is
3139
+ /// Converts a `Ty` in an unambiguous position to one in an ambiguous position. This is
3140
3140
/// fallible as the [`TyKind::Infer`] variant is not present in ambiguous positions.
3141
3141
///
3142
3142
/// Functions accepting ambiguous types will not handle the [`TyKind::Infer`] variant, if
0 commit comments