From 20dec1d0169ba6da516fd2af9918f7e5515309da Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sat, 7 May 2022 03:40:43 +0200 Subject: [PATCH] State that pop for length 1 is an example (#360) --- src/vec/vec-push-pop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vec/vec-push-pop.md b/src/vec/vec-push-pop.md index 2a4e0164..df083b9d 100644 --- a/src/vec/vec-push-pop.md +++ b/src/vec/vec-push-pop.md @@ -39,8 +39,8 @@ interprets it as a value of type T. This will leave the memory at this address logically uninitialized, even though there is in fact a perfectly good instance of T there. -For `pop`, if the old len is 1, we want to read out of the 0th index. So we -should offset by the new len. +For `pop`, if the old len is 1, for example, we want to read out of the 0th +index. So we should offset by the new len. ```rust,ignore