diff --git a/blog/content/edition-2/posts/12-async-await/index.ja.md b/blog/content/edition-2/posts/12-async-await/index.ja.md index ec44efe54..8c24f3a55 100644 --- a/blog/content/edition-2/posts/12-async-await/index.ja.md +++ b/blog/content/edition-2/posts/12-async-await/index.ja.md @@ -471,7 +471,7 @@ Futureは `Poll::Ready` を返した後、再びポーリングされるべき コンパイラが生成するステートマシンとその `Future` traitの実装はこのようになっている**かもしれません**。実際には、コンパイラは異なる方法でコードを生成しています。 (一応、現在は[_generators_]をベースにした実装になっていますが、これはあくまでも実装の詳細です。) -[_generators_]: https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html +[_generators_]: https://doc.rust-lang.org/stable/unstable-book/language-features/generators.html パズルの最後のピースは、生成された `example` 関数自体のコードです。関数のヘッダは次のように定義されていたことを思い出してください: diff --git a/blog/content/edition-2/posts/12-async-await/index.md b/blog/content/edition-2/posts/12-async-await/index.md index 87c9a83a5..7d5630505 100644 --- a/blog/content/edition-2/posts/12-async-await/index.md +++ b/blog/content/edition-2/posts/12-async-await/index.md @@ -464,7 +464,7 @@ Futures should not be polled again after they returned `Poll::Ready`, so we pani We now know what the compiler-generated state machine and its implementation of the `Future` trait _could_ look like. In practice, the compiler generates code in a different way. (In case you're interested, the implementation is currently based on [_generators_], but this is only an implementation detail.) -[_generators_]: https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html +[_generators_]: https://doc.rust-lang.org/stable/unstable-book/language-features/generators.html The last piece of the puzzle is the generated code for the `example` function itself. Remember, the function header was defined like this: