Merge pull request #1270 from Reid00/main

typo
pull/1293/head
Sunface 1 year ago committed by GitHub
commit 4bd65cd84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -184,7 +184,7 @@ help: to force the async block to take ownership of `v` (and any other
先别急着给它扣帽子,虽然我有时候也想这么做。。原因是它说的是类型必须活得比 `'static` 长,而不是值。当我们说一个值是 `'static` 时,意味着它将永远存活。这个很重要,因为编译器无法知道新创建的任务将存活多久,所以唯一的办法就是让任务永远存活。
如果大家对于 `'&static` 和 `T: 'static` 较为模糊,强烈建议回顾下[该章节](https://course.rs/advance/lifetime/static.html)。
如果大家对于 `&'static` 和 `T: 'static` 较为模糊,强烈建议回顾下[该章节](https://course.rs/advance/lifetime/static.html)。
#### Send 约束

Loading…
Cancel
Save