mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-31 11:01:46 +02:00
Small improvement to wording in box-recursive.md (#905)
The "it" was not clear to our Localization team so I tried to make the sentence a little clearer.
This commit is contained in:
parent
72a87de08e
commit
d27daceda2
@ -30,8 +30,8 @@ fn main() {
|
||||
|
||||
<details>
|
||||
|
||||
* If the `Box` was not used here and we attempted to embed a `List` directly into the `List`,
|
||||
the compiler would not compute a fixed size of the struct in memory, it would look infinite.
|
||||
* If `Box` was not used and we attempted to embed a `List` directly into the `List`,
|
||||
the compiler would not compute a fixed size of the struct in memory (`List` would be of infinite size).
|
||||
|
||||
* `Box` solves this problem as it has the same size as a regular pointer and just points at the next
|
||||
element of the `List` in the heap.
|
||||
|
Loading…
x
Reference in New Issue
Block a user