@@ -430,14 +430,14 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
430
430
}
431
431
432
432
// 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,
434
434
// so we fix them up:
435
435
//
436
436
// * Multiple bounds for the same type are coalesced into one: e.g., 'T: Copy', 'T: Debug'
437
437
// becomes 'T: Copy + Debug'
438
438
// * Fn bounds are handled specially - instead of leaving it as 'T: Fn(), <T as Fn::Output> =
439
439
// 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
441
441
fn param_env_to_generics (
442
442
& self ,
443
443
tcx : TyCtxt < ' tcx > ,
@@ -588,7 +588,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
588
588
. args ;
589
589
590
590
match args {
591
- // Convert somethiung like '<T as Iterator::Item> = u8'
591
+ // Convert something like '<T as Iterator::Item> = u8'
592
592
// to 'T: Iterator<Item=u8>'
593
593
GenericArgs :: AngleBracketed {
594
594
ref mut bindings, ..
@@ -712,7 +712,7 @@ impl<'a, 'tcx> AutoTraitFinder<'a, 'tcx> {
712
712
// since FxHasher has different behavior for 32-bit and 64-bit platforms.
713
713
//
714
714
// 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
716
716
// to end users, it makes writing tests much more difficult, as predicates
717
717
// can appear in any order in the final result.
718
718
//
0 commit comments