Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 330390ad71de41c97e9284546f2c1aaaafbe7ddc
parent 2d56af504dbca317dedfc753148f8a4a0e11b6b3
Author: Sergio Benitez <sb@sergio.bz>
Date:   Wed, 17 Oct 2018 18:33:08 -0700

Fix unsynchronized doctest.

Diffstat:
Mcore/codegen_next/src/lib.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/codegen_next/src/lib.rs b/core/codegen_next/src/lib.rs @@ -498,7 +498,7 @@ pub fn routes(input: TokenStream) -> TokenStream { /// # /// # #[catch(404)] fn not_found() { /* .. */ } /// # mod inner { -/// # #[catch(401)] pub fn unauthorized() { /* .. */ } +/// # #[catch(400)] pub fn unauthorized() { /* .. */ } /// # } /// # /// let my_catchers = catchers![not_found, inner::unauthorized]; @@ -508,7 +508,7 @@ pub fn routes(input: TokenStream) -> TokenStream { /// assert_eq!(not_found.code, 404); /// /// let unauthorized = &my_catchers[1]; -/// assert_eq!(unauthorized.code, 401); +/// assert_eq!(unauthorized.code, 400); /// ``` /// /// The grammar for `catchers!` is defined as: