From c224832acccbb9b16485c7adeb7714c71fce1ea8 Mon Sep 17 00:00:00 2001 From: Grey Li Date: Sat, 26 Jun 2021 18:58:15 +0800 Subject: [PATCH 1/2] Fix typo in docs/views.rst --- docs/views.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/views.rst b/docs/views.rst index 1d2daec7..63d26c5c 100644 --- a/docs/views.rst +++ b/docs/views.rst @@ -113,8 +113,8 @@ Method Based Dispatching For RESTful APIs it's especially helpful to execute a different function for each HTTP method. With the :class:`flask.views.MethodView` you can -easily do that. Each HTTP method maps to a function with the same name -(just in lowercase):: +easily do that. Each HTTP method maps to a method of the class with the +same name (just in lowercase):: from flask.views import MethodView From 6e1b72096d5ae1e2cc4d8592ff8271b62548d9cf Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Tue, 6 Jul 2021 22:05:31 +0200 Subject: [PATCH 2/2] Fix typo in docs --- src/flask/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask/app.py b/src/flask/app.py index 22cc9abc..8c3c39d4 100644 --- a/src/flask/app.py +++ b/src/flask/app.py @@ -1306,7 +1306,7 @@ class Flask(Scaffold): .. versionchanged:: 1.0 Exceptions are looked up by code *and* by MRO, so - ``HTTPExcpetion`` subclasses can be handled with a catch-all + ``HTTPException`` subclasses can be handled with a catch-all handler for the base ``HTTPException``. .. versionadded:: 0.3