diff options
| author | 2023-01-27 17:54:24 -0700 | |
|---|---|---|
| committer | 2023-01-27 17:54:24 -0700 | |
| commit | a3ddebe8d6686832c4a3fedfc435e7b4d643e1d6 (patch) | |
| tree | 5e4aa937562712f1e6e18dfc2e6b5735f74cedc8 | |
| parent | More minimizations (diff) | |
Clarify words
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 a19fc1b30..ca48d4de5 100644 --- a/bot/resources/tags/in-place.md +++ b/bot/resources/tags/in-place.md @@ -1,6 +1,6 @@ **Out of Place** and **In Place** -In programming, there are two types of operations: "out of place" operations creates a new object, leaving the original object unchanged. "in place" operations modifies 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. These operations 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. |