Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Dec 17, 2023
1 parent 530d4f5 commit ec78e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variance/covariance-borrow-forever.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<'a> Invariant<'a> {
都可以因为协变相应地缩短成 `&'b``&'b mut`

生命周期是协变的(即生命周期可以缩短),而引用通常可以再借
(reborrow),这表明:一个长的生命周期,可以在它存活的状态中,被“分割”彼此成互不相交的子生命周期
(reborrow),这表明:一个长的生命周期,可以在它存活的状态中,被“分割”成互不相交的子生命周期

这也适用于永久借用。以下两个代码展示了如何在永久借用的存活期间再借(重点在 `borrow` 内部)。

Expand Down

0 comments on commit ec78e89

Please sign in to comment.