Skip to content

Commit

Permalink
fixed the answer for exercise 6.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvoid authored Nov 3, 2016
1 parent 4d6b6ec commit 22cab00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch06/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cause the `s` should not be changed by this function. but `occurs`'s result must

>Why are these parameters references, but the char parameter `c` is not?
casue `c` maybe a temp varable. such as `find_char(s, 'a', occurs)`
It's OK to use const reference here but copying a `char` directly would be more memory-efficient.

>What would happen if we made `s` a plain reference? What if we made `occurs` a reference to const?
Expand Down

0 comments on commit 22cab00

Please sign in to comment.