Skip to content

Commit 6f8820d

Browse files
authored
Merge pull request #2061 from tonytonyjan/patch-5
unit type value is also a value
2 parents df86c4a + 24b3d87 commit 6f8820d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch20-02-multithreaded.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl ThreadPool {
364364
```
365365

366366
We still use the `()` after `FnOnce` because this `FnOnce` represents a closure
367-
that takes no parameters and doesn’t return a value. Just like function
367+
that takes no parameters and returns the unit type `()`. Just like function
368368
definitions, the return type can be omitted from the signature, but even if we
369369
have no parameters, we still need the parentheses.
370370

0 commit comments

Comments
 (0)