]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Remove useless brackets from code example in documentation. (#2234)
authorJosiah Kaviani <proofit404@gmail.com>
Fri, 25 Aug 2023 18:57:40 +0000 (22:57 +0400)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2023 18:57:40 +0000 (18:57 +0000)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
docs/responses.md

index 41a87797d7b26786a7ed7937f4893698a5679c21..309b57447a80c9da224b1f79966d6638a9ab55ee 100644 (file)
@@ -143,11 +143,11 @@ import asyncio
 
 
 async def slow_numbers(minimum, maximum):
-    yield('<html><body><ul>')
+    yield '<html><body><ul>'
     for number in range(minimum, maximum + 1):
         yield '<li>%d</li>' % number
         await asyncio.sleep(0.5)
-    yield('</ul></body></html>')
+    yield '</ul></body></html>'
 
 
 async def app(scope, receive, send):