Skip to content

Commit 5d37b60

Browse files
committed
Fixed capitalization on inline comments in last join example.
1 parent 50cc8f3 commit 5d37b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/strings/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ If a `list`, `tuple`, `set` or other collection of individual strings needs to b
202202
# Separators are inserted **between** elements, but can be any string (including spaces).
203203
# This can be exploited for interesting effects.
204204
>>> under_words = ['under', 'current', 'sea', 'pin', 'dog', 'lay']
205-
>>> separator = ' ⤴️ under' # note the leading space, but no trailing space.
205+
>>> separator = ' ⤴️ under' # Note the leading space, but no trailing space.
206206
>>> separator.join(under_words)
207207
'under ⤴️ undercurrent ⤴️ undersea ⤴️ underpin ⤴️ underdog ⤴️ underlay'
208208

209209
# The separator can be composed different ways, as long as the result is a string.
210210
>>> upper_words = ['upper', 'crust', 'case', 'classmen', 'most', 'cut']
211-
>>> separator = ' 🌟 ' + upper_words[0] # this becomes one string, similar to ' ⤴️ under'.
211+
>>> separator = ' 🌟 ' + upper_words[0] # This becomes one string, similar to ' ⤴️ under'.
212212
>>> separator.join(upper_words)
213213
'upper 🌟 uppercrust 🌟 uppercase 🌟 upperclassmen 🌟 uppermost 🌟 uppercut'
214214
```

0 commit comments

Comments
 (0)