Skip to content

Commit

Permalink
content: typo fixes in pointer-params
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Sep 7, 2021
1 parent 0fb976f commit bf6588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/pointer-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Eventually, we will endup with the following results:

TLDR: The above figure basically demonstrates when should you pass-by-value
or pass-by-pointer. If you are certain that your code won't produce any escape
variables, and the size of your argument is smaller than 4*4 = 16 bytes,
variables, and the size of your argument is smaller than 4*8 = 32 bytes,
then you should go for pass-by-value; otherwise, you should keep using pointers.

## Further Reading Suggestions
Expand Down

0 comments on commit bf6588e

Please sign in to comment.