diff options
| author | Michael Merickel <michael@merickel.org> | 2018-11-12 16:13:38 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-11-12 16:13:38 -0600 |
| commit | c8f88fe53338b2b2675ef4497d0704a1542112ec (patch) | |
| tree | 3dd62ce0e9120510ce3d071d723f64d9830c999a | |
| parent | dff0798e352d0afeeec2058200ac983692b606c2 (diff) | |
| download | pyramid-c8f88fe53338b2b2675ef4497d0704a1542112ec.tar.gz pyramid-c8f88fe53338b2b2675ef4497d0704a1542112ec.tar.bz2 pyramid-c8f88fe53338b2b2675ef4497d0704a1542112ec.zip | |
try to fix docs
| -rw-r--r-- | src/pyramid/config/routes.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pyramid/config/routes.py b/src/pyramid/config/routes.py index e7e981df0..52540c935 100644 --- a/src/pyramid/config/routes.py +++ b/src/pyramid/config/routes.py @@ -144,10 +144,11 @@ class RoutesConfiguratorMixin(object): This argument can only be used when the ``pattern`` is an empty string (``''``). By default, the composed route pattern will always - includes a trailing slash, but this argument provides a way to - opt-out if both, you and the integrator (the developer setting the - :term:`route prefix`), agree that the pattern should not contain - a trailing slash. For example: + include a trailing slash, but this argument provides a way to + opt-out if both, you (the developer invoking ``add_route``) and the + integrator (the developer setting the :term:`route prefix`), + agree that the pattern should not contain a trailing slash. + For example: .. code-block:: python @@ -155,7 +156,7 @@ class RoutesConfiguratorMixin(object): config.add_route('users', '', inherit_slash=True) In this example, the resulting route pattern will be ``/users``. - Alternatively, if the route prefix were ``/users/`` then the + Alternatively, if the route prefix were ``/users/``, then the resulting route pattern would be ``/users/``. .. versionadded:: 2.0 |
