Skip to content

Commit

Permalink
Update 11_clone.md (#205)
Browse files Browse the repository at this point in the history
typo in code
  • Loading branch information
rober-m authored Nov 1, 2024
1 parent 9e63a5c commit b60e021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/04_traits/11_clone.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ that to `consumer` instead.\
## In memory

Let's look at what happened in memory in the example above.
When `let mut s: String::from("hello");` is executed, the memory looks like this:
When `let mut s = String::from("hello");` is executed, the memory looks like this:

```text
s
Expand Down

0 comments on commit b60e021

Please sign in to comment.