1
Fork 0

Fix a comment typo.

This commit is contained in:
Nicholas Nethercote 2025-01-29 13:23:30 +11:00
parent 40db88979d
commit d8be00fd44

View file

@ -34,7 +34,7 @@
//! impl<T, I: Iterator<Item=T>> SpecExtend<T> for I { /* default impl */ } //! impl<T, I: Iterator<Item=T>> SpecExtend<T> for I { /* default impl */ }
//! ``` //! ```
//! //!
//! We get that the generic pamameters for `impl2` are `[T, std::vec::IntoIter<T>]`. //! We get that the generic parameters for `impl2` are `[T, std::vec::IntoIter<T>]`.
//! `T` is constrained to be `<I as Iterator>::Item`, so we check only //! `T` is constrained to be `<I as Iterator>::Item`, so we check only
//! `std::vec::IntoIter<T>` for repeated parameters, which it doesn't have. The //! `std::vec::IntoIter<T>` for repeated parameters, which it doesn't have. The
//! predicates of `impl1` are only `T: Sized`, which is also a predicate of //! predicates of `impl1` are only `T: Sized`, which is also a predicate of