From 84df7eaa38aa38b3a4b4153678316c0700fc4fa8 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 31 Jan 2022 09:37:29 +0100 Subject: [PATCH] `MethodRouter::fallback` docs follow up https://github.com/tokio-rs/axum/pull/733#discussion_r795244092 --- axum/src/docs/method_routing/fallback.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum/src/docs/method_routing/fallback.md b/axum/src/docs/method_routing/fallback.md index f00f7395..0d2ee300 100644 --- a/axum/src/docs/method_routing/fallback.md +++ b/axum/src/docs/method_routing/fallback.md @@ -58,5 +58,5 @@ By default `MethodRouter` will set the `Allow` header when returning `405 Method Not Allowed`. This is also done when the fallback is used unless the response generated by the fallback already sets the `Allow` header. -This means if you use `fallback` to accept additional methods make sure you set -the `Allow` header correctly. +This means if you use `fallback` to accept additional methods, you should make +sure you set the `Allow` header correctly.