jetbrains-academy / rustlings-course

Small exercises to get you used to reading and writing Rust code!
https://github.com/rust-lang/rustlings/releases/tag/1.2.2
MIT License
149 stars 33 forks source link

Last paragraph doesn't make sense in context Generic Types Traits and Lifetime / Traits / Using Trait Bounds to Conditionally Implement Methods #261

Closed edutools-service closed 1 year ago

edutools-service commented 1 year ago

The following paragraph at the end of this section:

Another kind of generic that we’ve already been using is called lifetimes. Rather than ensuring that a type has the behavior we want, lifetimes ensure that references are valid as long as we need them to be. Let’s look at how lifetimes do that.

Doesn't make sense, as we aren't going to look at lifetimes next - we are first going to complete some tasks relating to traits. Perhaps remove it or move it to the next section?