Skip to content

Commit

Permalink
deref: fix typo (rust-unofficial#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni authored Oct 2, 2021
1 parent 7e96169 commit 66d7e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idioms/deref.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ its data if the only way to access each datum is via the collection and the
collection is responsible for deleting the data (even in cases of shared
ownership, some kind of borrowed view may be appropriate). If a collection owns
its data, it is usually useful to provide a view of the data as borrowed so that
it can be multiplied referenced.
it can be referenced multiple times.

Most smart pointers (e.g., `Foo<T>`) implement `Deref<Target=T>`. However,
collections will usually dereference to a custom type. `[T]` and `str` have some
Expand Down

0 comments on commit 66d7e6c

Please sign in to comment.