Skip to content

Commit 9bcae1e

Browse files
authored
docs: minor doc fixes (#4465)
1 parent f1aeb42 commit 9bcae1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/usage/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Exceptions and exception handling
22
=================================
33

4-
Litestar define a base exception called :class:`LitestarException <litestar.exceptions.LitestarException>` which serves
4+
Litestar defines a base exception called :class:`LitestarException <litestar.exceptions.LitestarException>` which serves
55
as a base class for all other exceptions, see :mod:`API Reference <litestar.exceptions>`.
66

77
In general, Litestar has two scenarios for exception handling:

docs/usage/middleware/builtin-middleware.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ list of domains to :class:`~litestar.app.Litestar`:
158158
You can use wildcard prefixes (``*.``) in the beginning of a domain to match any combination of subdomains. Thus,
159159
``*.example.com`` will match ``www.example.com`` but also ``x.y.z.example.com`` etc. You can also simply put ``*``
160160
in trusted hosts, which means allow all. This is akin to turning the middleware off, so in this case it may be
161-
better to not enable it in the first place. You should note that a wildcard can only be used only in the prefix of a
161+
better to not enable it in the first place. You should note that a wildcard can only be used in the prefix of a
162162
domain name, not in the middle or end. Doing so will result in a validation exception being raised.
163163

164164

docs/usage/plugins/problem_details.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ You can also convert any exception that is not a ``HTTPException`` into a proble
3131
by providing a mapping of the exception type to a callable that converts the exception into a
3232
``ProblemDetailsException.``
3333

34-
.. tip:: This can used to override how the ``HTTPException`` is converted into a problem details response as well.
34+
.. tip:: This can be used to override how the ``HTTPException`` is converted into a problem details response as well.
3535

3636
.. literalinclude:: /examples/plugins/problem_details/convert_exceptions.py
3737
:language: python
3838
:caption: Converting custom exceptions into problem details response.
3939

40-
.. warning:: If the ``extra`` field is a ``Mapping``, then it's merged into the problem details response, otherwise it's included in the response with the key ``extra.``
40+
.. warning:: If the ``extra`` field is a ``Mapping``, then it's merged into the problem details response, otherwise it's included in the response with the key ``extra``.

0 commit comments

Comments
 (0)