Skip to content

Commit 174ed47

Browse files
committed
fixup
1 parent faad770 commit 174ed47

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

peps/pep-0822.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,27 +179,27 @@ Examples:
179179
__Hello \
180180
__World!\
181181
__""" # line continuation works as ususal
182-
print(repr(s)) # 'Hello World!'
182+
print(repr(s)) # 'Hello_World!'
183183
184184
s = d"""\
185185
__Hello
186186
__World
187187
__""" # SyntaxError: d-string must starts with a newline.
188188
189189
s = dr"""
190-
Hello\
191-
World!\
192-
""" # d-string can be combined with r-string.
190+
__Hello\
191+
__World!\
192+
__""" # d-string can be combined with r-string.
193193
print(repr(s)) # 'Hello\\\nWorld!\\\n'
194194
195195
s = df"""
196-
Hello, {"world".title()}!
197-
""" # d-string can be combined with f-string and t-string too.
196+
____Hello, {"world".title()}!
197+
____""" # d-string can be combined with f-string and t-string too.
198198
print(repr(s)) # 'Hello, World!\n'
199199
200200
s = dt"""
201-
Hello, {"world".title()}!
202-
"""
201+
____Hello, {"world".title()}!
202+
____"""
203203
print(type(s)) # <class 'string.templatelib.Template'>
204204
print(s.strings) # ('Hello, ', '!\n')
205205
print(s.values) # ('World',)
@@ -235,7 +235,8 @@ This PEP chose the Swift and C# approach because it is more simple and easy to e
235235
Reference Implementation
236236
========================
237237

238-
A CPython implementation of PEP 822 is `available <https://github.com/python/cpython/pull/143416>`__.
238+
A CPython implementation of PEP 822 is available at
239+
`methane/cpython#108 <https://github.com/methane/cpython/pull/108>`__.
239240

240241

241242
Rejected Ideas

0 commit comments

Comments
 (0)