Skip to content

Commit

Permalink
Correct minor typos in slide notes (#2687)
Browse files Browse the repository at this point in the history
- There's a `NotCloneable` in the code, no `NonCloneable`
- Point<StderrLogger> doesn't make sense in this context
  • Loading branch information
ColinPitrat authored Mar 4, 2025
1 parent 7f45460 commit b24914a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/closures/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
minutes: 10
---

# Closures
# Closure traits

Closures or lambda expressions have types which cannot be named. However, they
implement special [`Fn`](https://doc.rust-lang.org/std/ops/trait.Fn.html),
Expand Down
2 changes: 1 addition & 1 deletion src/generics/generic-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn main() {
- It is possible to write `impl VerbosityFilter<StderrLogger> { .. }`.
- `VerbosityFilter` is still generic and you can use `VerbosityFilter<f64>`,
but methods in this block will only be available for
`Point<StderrLogger>`.
`VerbosityFilter<StderrLogger>`.
- Note that we don't put a trait bound on the `VerbosityFilter` type itself. You
can put bounds there as well, but generally in Rust we only put the trait
bounds on the impl blocks.
Expand Down
2 changes: 1 addition & 1 deletion src/generics/trait-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {

<details>

- Try making a `NonCloneable` and passing it to `duplicate`.
- Try making a `NotCloneable` and passing it to `duplicate`.

- When multiple traits are necessary, use `+` to join them.

Expand Down
8 changes: 4 additions & 4 deletions src/std-traits/comparisons.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ impl PartialOrd for Citation {
- In practice, it's common to derive these traits, but uncommon to implement
them.

- When comparing references in Rust, it will will compare the value of the
things pointed to, it will NOT compare the references themselves. That means
that references to two different things can compare as equal if the values
pointed to are the same:
- When comparing references in Rust, it will compare the value of the things
pointed to, it will NOT compare the references themselves. That means that
references to two different things can compare as equal if the values pointed
to are the same:

```rust,editable
fn main() {
Expand Down

0 comments on commit b24914a

Please sign in to comment.