Skip to content

Commit 7eff36a

Browse files
committed
Fix preexisting typo on "ancestors"
While we're here, let's fix a typo on the word "ancestors" in this section.
1 parent 67115fd commit 7eff36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ This closure captures an immutable borrow of `s.f1.1`.
135135
r[type.closure.capture.precision.shared-prefix]
136136
### Shared prefix
137137

138-
In the case where a capture path and one of the ancestor’s of that path are both captured by a closure, the ancestor path is captured with the highest capture mode among the two captures, `CaptureMode = max(AncestorCaptureMode, DescendantCaptureMode)`, using the strict weak ordering:
138+
In the case where a 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, `CaptureMode = max(AncestorCaptureMode, DescendantCaptureMode)`, using the strict weak ordering:
139139

140140
`ImmBorrow < UniqueImmBorrow < MutBorrow < ByValue`
141141

0 commit comments

Comments
 (0)