From 0e50d98f755eb324d3816170dd33652c1a525940 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 6 May 2022 06:38:07 +0200 Subject: [PATCH] State that pop for length 1 is an example The way it's written, it seems to indicate that length 1 is a special case. This should make it clear that it's just an example to illustrate the next affirmation. --- 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 2a4e016..df083b9 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