Skip to content

Commit 21cf840

Browse files
morinokamicarols10cents
authored andcommitted
Correct i32 formatting in ch19-05
1 parent 8fa6b85 commit 21cf840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch19-05-advanced-functions-and-closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The syntax for specifying that a parameter is a function pointer is similar to
1717
that of closures, as shown in Listing 19-27, where we’ve defined a function
1818
`add_one` that adds one to its parameter. The function `do_twice` takes two
1919
parameters: a function pointer to any function that takes an `i32` parameter
20-
and returns an `i32`, and one `i32 value`. The `do_twice` function calls the
20+
and returns an `i32`, and one `i32` value. The `do_twice` function calls the
2121
function `f` twice, passing it the `arg` value, then adds the two function call
2222
results together. The `main` function calls `do_twice` with the arguments
2323
`add_one` and `5`.

0 commit comments

Comments
 (0)