aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Brody Critchlow <[email protected]>2023-01-26 11:04:26 -0700
committerGravatar GitHub <[email protected]>2023-01-26 11:04:26 -0700
commit053c5edda0bbca2b7c7d96046b0a7befa767666b (patch)
tree60936051e9250debfd31626da1326a09ef2cbbc3
parentAdd clarifying details (diff)
Add clarifying details
Co-authored-by: Caeden Perelli-Harris <[email protected]>
-rw-r--r--bot/resources/tags/in-place.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/in-place.md b/bot/resources/tags/in-place.md
index 880f82527..2a9a1db2f 100644
--- a/bot/resources/tags/in-place.md
+++ b/bot/resources/tags/in-place.md
@@ -12,7 +12,7 @@ a_new_list = a_list.sort() # This will be None
print(a_new_list[1]) # This will error because it is empty
```
-On the other hand, using `sorted(...)` will return a new sorted list, leaving the original list unchanged. This means that if you expect the original list to be sorted, you will be disappointed with the result. For example, the following code will print 3 instead of 1:
+On the other hand, using the function `sorted(...)` will return a new sorted list, leaving the original list unchanged. This means that if you expect the original list to be sorted, you will be disappointed with the result. For example, the following code will print 3 instead of 1:
```py
a_list = [3, 1, 2]