From 9e5db81d312d70aa05275c517283f9bd5344d48f Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 13 Aug 2017 03:13:20 -0700 Subject: [PATCH] Fix example in 'Request::guard()' documentation. Resolves #378. --- lib/src/request/request.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/request/request.rs b/lib/src/request/request.rs index d58799ed..6fc01d5e 100644 --- a/lib/src/request/request.rs +++ b/lib/src/request/request.rs @@ -430,12 +430,10 @@ impl<'r> Request<'r> { /// /// # Example /// - /// Invoke the `Json` request guard. + /// Assuming a `User` request guard exists, invoke it: /// /// ```rust,ignore - /// use rocket_contrib::Json; - /// - /// let outcome = request.guard::>(); + /// let outcome = request.guard::(); /// ``` /// /// Retrieve managed state inside of a guard implementation: