@@ -430,14 +430,14 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
430430 }
431431
432432 // Converts the calculated ParamEnv and lifetime information to a clean::Generics, suitable for
433- // display on the docs page. Cleaning the Predicates produces sub-optimal WherePredicate' s,
433+ // display on the docs page. Cleaning the Predicates produces sub-optimal ` WherePredicate` s,
434434 // so we fix them up:
435435 //
436436 // * Multiple bounds for the same type are coalesced into one: e.g., 'T: Copy', 'T: Debug'
437437 // becomes 'T: Copy + Debug'
438438 // * Fn bounds are handled specially - instead of leaving it as 'T: Fn(), <T as Fn::Output> =
439439 // K', we use the dedicated syntax 'T: Fn() -> K'
440- // * We explcitly add a '?Sized' bound if we didn't find any 'Sized' predicates for a type
440+ // * We explicitly add a '?Sized' bound if we didn't find any 'Sized' predicates for a type
441441 fn param_env_to_generics (
442442 & self ,
443443 tcx : TyCtxt < ' tcx > ,
@@ -588,7 +588,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
588588 . args ;
589589
590590 match args {
591- // Convert somethiung like '<T as Iterator::Item> = u8'
591+ // Convert something like '<T as Iterator::Item> = u8'
592592 // to 'T: Iterator<Item=u8>'
593593 GenericArgs :: AngleBracketed {
594594 ref mut bindings, ..
@@ -712,7 +712,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
712712 // since FxHasher has different behavior for 32-bit and 64-bit platforms.
713713 //
714714 // Obviously, it's extremely undesirable for documentation rendering
715- // to be depndent on the platform it's run on. Apart from being confusing
715+ // to be dependent on the platform it's run on. Apart from being confusing
716716 // to end users, it makes writing tests much more difficult, as predicates
717717 // can appear in any order in the final result.
718718 //
0 commit comments