Update ch17-05-traits-for-async.md

有个小语病
pull/887/head
qwer252 1 week ago committed by GitHub
parent ea0b8916b4
commit 41c73fa626
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -197,7 +197,7 @@ pub trait Future {
</figure> </figure>
因此,如果 `String` 实现了 `!Unpin` 我们可以做一些非法的事,比如像图 17-9 这样在完全相同的内存位置将一个字符串替换为另一个字符串。这并不违反 `Pin` 的规则,因为 `String` 没有内部引用这使得它可以安全地移动!这是为何它实现了 `Unpin` 而不是 `!Unpin` 的原因 因此,如果 `String` 实现了 `!Unpin` 我们可以做一些非法的事,比如像图 17-9 这样在完全相同的内存位置将一个字符串替换为另一个字符串。这并不违反 `Pin` 的规则,因为 `String` 没有内部引用这使得它可以安全地移动!这是为何它实现了 `Unpin` 而不是 `!Unpin`
<figure> <figure>

Loading…
Cancel
Save