From dea9a0a368e5c6eb93d195d6c378c10350f1e347 Mon Sep 17 00:00:00 2001 From: devindumke <137751480+devindumke@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:01:33 -0600 Subject: [PATCH] Update ch17-01-futures-and-syntax.md Modified ch17-1 to change a reference to non-existent function "page_url_for" to "page_title" --- src/ch17-01-futures-and-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch17-01-futures-and-syntax.md b/src/ch17-01-futures-and-syntax.md index 13f6cc4f3d..1d3cfb85ad 100644 --- a/src/ch17-01-futures-and-syntax.md +++ b/src/ch17-01-futures-and-syntax.md @@ -123,7 +123,7 @@ Notice that Rust’s `await` keyword goes after the expression you are awaiting, not before it. That is, it is a *postfix keyword*. This may be different from what you might be used to if you have used async in other languages. Rust chose this because it makes chains of methods much nicer to work with. As a result, we -can change the body of `page_url_for` to chain the `trpl::get` and `text` +can change the body of `page_title` to chain the `trpl::get` and `text` function calls together with `await` between them, as shown in Listing 17-2: