Skip to content

Commit e3ed8e9

Browse files
link-it
Co-authored-by: Hristian Kirtchev <60669983+kirtchev-adacore@users.noreply.github.com>
1 parent 40847f4 commit e3ed8e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types-and-traits.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ A :t:`closure expression` :t:`[borrow]s` or :t:`moves <by move>` the :t:`capture
921921
When a :t:`capture path` and one of the ancestors of that path are both captured by a closure, the ancestor path is captured with the highest capture mode among the two captures, using the strict weak ordering: :t:`immutable borrow` < :t:`unique immutable borrow` < :t:`mutable borrow` < :t:`move <by move>`.
922922

923923
- :dp:`fls_eNkZWskzznW6`
924-
The :t:`capture path` is truncated at the rightmost :t:`dereference` in the capture path if the dereference is applied to a :t:`shared reference`.
924+
- The :t:`capture path` is truncated at the rightmost :t:`dereference` in the :t:`capture path` if the :t:`dereference` is applied to a :t:`shared reference`.
925925

926926
:dp:`fls_v8IFXHJnXhez`
927927
A :t:`place` is not captured when an :t:`underscore expression` is used to bind it.

0 commit comments

Comments
 (0)