Skip to content

Commit

Permalink
Fix grammar
Browse files Browse the repository at this point in the history
Add the word 'of' to fix the grammar.
  • Loading branch information
vishallama authored and carols10cents committed Apr 3, 2023
1 parent 0510ca8 commit c060061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch15-06-reference-cycles.md
Expand Up @@ -84,7 +84,7 @@ If you uncomment the last `println!` and run the program, Rust will try to
print this cycle with `a` pointing to `b` pointing to `a` and so forth until it
overflows the stack.

Compared to a real-world program, the consequences creating a reference cycle
Compared to a real-world program, the consequences of creating a reference cycle
in this example aren’t very dire: right after we create the reference cycle,
the program ends. However, if a more complex program allocated lots of memory
in a cycle and held onto it for a long time, the program would use more memory
Expand Down

0 comments on commit c060061

Please sign in to comment.