From 371f7ccdc386a1afac4c1bd005daf4bdc32edd56 Mon Sep 17 00:00:00 2001 From: Paul Roman Date: Sun, 16 Sep 2018 15:06:19 -0400 Subject: [PATCH] Add missing `>` --- 2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md | 2 +- second-edition/src/ch20-03-graceful-shutdown-and-cleanup.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md b/2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md index f333c6d94..a55ba42cc 100644 --- a/2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md +++ b/2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md @@ -59,7 +59,7 @@ The error tells us we can’t call `join` because we only have a mutable borrow of each `worker` and `join` takes ownership of its argument. To solve this issue, we need to move the thread out of the `Worker` instance that owns `thread` so `join` can consume the thread. We did this in Listing 17-15: if -`Worker` holds an `Option` instead, we can call the +`Worker` holds an `Option>` instead, we can call the `take` method on the `Option` to move the value out of the `Some` variant and leave a `None` variant in its place. In other words, a `Worker` that is running will have a `Some` variant in `thread`, and when we want to clean up a diff --git a/second-edition/src/ch20-03-graceful-shutdown-and-cleanup.md b/second-edition/src/ch20-03-graceful-shutdown-and-cleanup.md index 23904e7bc..7d466a4de 100644 --- a/second-edition/src/ch20-03-graceful-shutdown-and-cleanup.md +++ b/second-edition/src/ch20-03-graceful-shutdown-and-cleanup.md @@ -59,7 +59,7 @@ The error tells us we can’t call `join` because we only have a mutable borrow of each `worker` and `join` takes ownership of its argument. To solve this issue, we need to move the thread out of the `Worker` instance that owns `thread` so `join` can consume the thread. We did this in Listing 17-15: if -`Worker` holds an `Option` instead, we can call the +`Worker` holds an `Option>` instead, we can call the `take` method on the `Option` to move the value out of the `Some` variant and leave a `None` variant in its place. In other words, a `Worker` that is running will have a `Some` variant in `thread`, and when we want to clean up a