Skip to content

Commit a1b6705

Browse files
Fix doc examples (#14)
1 parent 8853697 commit a1b6705

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Then call the setup method when building your app:
7171
7272
app = web.Application()
7373
app.router.add_get("/foo", foo)
74-
app.router.add_view("/bar/{id:\d+}", Handler)
74+
app.router.add_view(r"/bar/{id:\d+}", Handler)
7575
SCHEMA.setup(app)
7676
7777

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Then call the setup method when building your app:
5050
5151
app = web.Application()
5252
app.router.add_get("/foo", foo)
53-
app.router.add_view("/bar/{id:\d+}", Handler)
53+
app.router.add_view(r"/bar/{id:\d+}", Handler)
5454
SCHEMA.setup(app)
5555
5656

0 commit comments

Comments
 (0)