From 33a1df5684ae7ef3d3bbababe9b4765d11b3dac3 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 1 Sep 2023 13:13:35 -0400 Subject: [PATCH] updating README again --- lectures/02_strings_vectors/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lectures/02_strings_vectors/README.md b/lectures/02_strings_vectors/README.md index 24c65d9..5bb19ab 100644 --- a/lectures/02_strings_vectors/README.md +++ b/lectures/02_strings_vectors/README.md @@ -103,7 +103,6 @@ std::vector e( b ); The following outlines rules for passing vectors as parameters. The same rules apply to passing strings. - If you are passing a vector as a parameter to a function and you want to make a (permanent) change to the vector, then you should pass it by reference. - – This is very different from the behavior of arrays as parameters. - What if you don’t want to make changes to the vector or don’t want these changes to be permanent? – The answer we’ve learned so far is to pass by value. – The problem is that the entire vector is copied when this happens! Depending on the size of the vector,