@@ -439,7 +439,7 @@ impl<'hir> ConstArg<'hir, AmbigArg> {
439439}
440440
441441impl < ' hir > ConstArg < ' hir > {
442- /// Converts a `ConstArg` in an unambigous position to one in an ambiguous position. This is
442+ /// Converts a `ConstArg` in an unambiguous position to one in an ambiguous position. This is
443443 /// fallible as the [`ConstArgKind::Infer`] variant is not present in ambiguous positions.
444444 ///
445445 /// Functions accepting ambiguous consts will not handle the [`ConstArgKind::Infer`] variant, if
@@ -508,7 +508,7 @@ pub enum GenericArg<'hir> {
508508 Lifetime ( & ' hir Lifetime ) ,
509509 Type ( & ' hir Ty < ' hir , AmbigArg > ) ,
510510 Const ( & ' hir ConstArg < ' hir , AmbigArg > ) ,
511- /// Inference variables in [`GenericArg`] are always represnted by
511+ /// Inference variables in [`GenericArg`] are always represented by
512512 /// `GenericArg::Infer` instead of the `Infer` variants on [`TyKind`] and
513513 /// [`ConstArgKind`] as it is not clear until hir ty lowering whether a
514514 /// `_` argument is a type or const argument.
@@ -3323,7 +3323,7 @@ impl<'hir> Ty<'hir, AmbigArg> {
33233323}
33243324
33253325impl < ' hir > Ty < ' hir > {
3326- /// Converts a `Ty` in an unambigous position to one in an ambiguous position. This is
3326+ /// Converts a `Ty` in an unambiguous position to one in an ambiguous position. This is
33273327 /// fallible as the [`TyKind::Infer`] variant is not present in ambiguous positions.
33283328 ///
33293329 /// Functions accepting ambiguous types will not handle the [`TyKind::Infer`] variant, if
@@ -4224,7 +4224,7 @@ impl fmt::Display for Constness {
42244224 }
42254225}
42264226
4227- /// The actualy safety specified in syntax. We may treat
4227+ /// The actually safety specified in syntax. We may treat
42284228/// its safety different within the type system to create a
42294229/// "sound by default" system that needs checking this enum
42304230/// explicitly to allow unsafe operations.
0 commit comments