Skip to content

Commit

Permalink
[Lists] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
qadzek authored Jul 9, 2024
1 parent c3278e1 commit 1a64951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concepts/lists/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Assigning a `list` object to a new variable _name_ **does not copy the `list` ob
Any change made to the elements in the `list` under the _new_ name _impact the original_.


Making a `shallow_copy` via `list.copy()` or slice will avoid this first-leve referencing complication.
Making a `shallow_copy` via `list.copy()` or slice will avoid this first-level referencing complication.
A `shallow_copy` will create a new `list` object, but **will not** create new objects for the contained list _elements_. This type of copy will usually be enough for you to add or remove items from the two `list` objects independently, and effectively have two "separate" lists.


Expand Down

0 comments on commit 1a64951

Please sign in to comment.