From 21e5b654ab4ef0c787604edbb99b8763b36949be Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 28 Oct 2021 18:41:52 +0200 Subject: [PATCH] Fix `NotFound` docs (#431) --- src/routing/not_found.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routing/not_found.rs b/src/routing/not_found.rs index 0ccc0859..8f7b689d 100644 --- a/src/routing/not_found.rs +++ b/src/routing/not_found.rs @@ -7,7 +7,7 @@ use std::{ }; use tower_service::Service; -/// A [`Service`] that responds with `405 Method not allowed` to all requests. +/// A [`Service`] that responds with `404 Not Found` to all requests. /// /// This is used as the bottom service in a method router. You shouldn't have to /// use it manually.