You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-26 18:51:00 +02:00
Re-apply formatting to SUMMARY.md (#1429)
With the latest version of mdbook-i18n-helpers, we now have support for formatting in the `SUMMARY.md` file. This allows us to revert the changes made in #130 when we first introduced the translation support. This also aligns a few headings to match the heading in the outline. While this isn’t strictly necessary, it removes a bit of work for the translators.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# Pin
|
||||
# `Pin`
|
||||
|
||||
When you await a future, all local variables (that would ordinarily be stored on
|
||||
a stack frame) are instead stored in the Future for the current async block. If your
|
||||
@ -6,7 +6,7 @@ future has pointers to data on the stack, those pointers might get invalidated.
|
||||
This is unsafe.
|
||||
|
||||
Therefore, you must guarantee that the addresses your future points to don't
|
||||
change. That is why we need to `pin` futures. Using the same future repeatedly
|
||||
change. That is why we need to "pin" futures. Using the same future repeatedly
|
||||
in a `select!` often leads to issues with pinned values.
|
||||
|
||||
```rust,editable,compile_fail
|
||||
|
Reference in New Issue
Block a user