diff options
author | 2023-03-28 15:56:44 -0600 | |
---|---|---|
committer | 2023-03-28 15:56:44 -0600 | |
commit | 26959a11a06a5ae221dc754bb8a0f762a4eb6d5c (patch) | |
tree | a1f1fdf1339c73b674819afa147c04bf21022445 | |
parent | Update required wording (diff) |
Change Wording
Co-authored-by: dawn <[email protected]>
-rw-r--r-- | bot/resources/tags/in-place.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/in-place.md b/bot/resources/tags/in-place.md index 0fb11de8b..2813b9e57 100644 --- a/bot/resources/tags/in-place.md +++ b/bot/resources/tags/in-place.md @@ -3,7 +3,7 @@ embed: title: "Out of place and in place" --- -In programming, there are two types of operations: "out of place" operations create a new object, leaving the original object unchanged. "in place" operations modify the original object, without creating a new one. These operations return None explicitly. +In programming, there are two types of operations: "out of place" operations create a new object, leaving the original object unchanged. "in place" operations modify the original object without creating a new one, and return `None` explicitly. A common example of these different concepts is seen in the use of the methods `list.sort()` and `sorted(...)`. Using `list.sort()` and attempting to access an element of the list will result in an error. |