Skip to content

Commit 20dec1d

Browse files
State that pop for length 1 is an example (#360)
1 parent c564f0f commit 20dec1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vec/vec-push-pop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ interprets it as a value of type T. This will leave the memory at this address
3939
logically uninitialized, even though there is in fact a perfectly good instance
4040
of T there.
4141

42-
For `pop`, if the old len is 1, we want to read out of the 0th index. So we
43-
should offset by the new len.
42+
For `pop`, if the old len is 1, for example, we want to read out of the 0th
43+
index. So we should offset by the new len.
4444

4545
<!-- ignore: simplified code -->
4646
```rust,ignore

0 commit comments

Comments
 (0)