Skip to content

Commit 347449c

Browse files
committed
Fix "message" that should be "method"
Connects to rust-lang#2608
1 parent 7876f3d commit 347449c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch15-05-interior-mutability.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ signature of `send` wouldn’t match the signature in the `Messenger` trait
189189
definition (feel free to try and see what error message you get).
190190

191191
This is a situation in which interior mutability can help! We’ll store the
192-
`sent_messages` within a `RefCell<T>`, and then the `send` message will be
192+
`sent_messages` within a `RefCell<T>`, and then the `send` method will be
193193
able to modify `sent_messages` to store the messages we’ve seen. Listing 15-22
194194
shows what that looks like:
195195

0 commit comments

Comments
 (0)