Browse Source

More doc typo fixes

pull/330/head
Armin Ronacher 14 years ago
parent
commit
363d9ed10d
  1. 4
      docs/api.rst

4
docs/api.rst

@ -513,7 +513,7 @@ The following converters are available:
`path` like the default but also accepts slashes `path` like the default but also accepts slashes
=========== =============================================== =========== ===============================================
Here some examples:: Here are some examples::
@app.route('/') @app.route('/')
def index(): def index():
@ -534,7 +534,7 @@ apply:
1. If a rule ends with a slash and is requested without a slash by the 1. If a rule ends with a slash and is requested without a slash by the
user, the user is automatically redirected to the same page with a user, the user is automatically redirected to the same page with a
trailing slash attached. trailing slash attached.
2. If a rule does not end with a trailing slash and the user request the 2. If a rule does not end with a trailing slash and the user requests the
page with a trailing slash, a 404 not found is raised. page with a trailing slash, a 404 not found is raised.
This is consistent with how web servers deal with static files. This This is consistent with how web servers deal with static files. This

Loading…
Cancel
Save