From b6c34a91e5d0409c2b20bb436308163af3af2f49 Mon Sep 17 00:00:00 2001 From: imarambiocatan <39808666+imarambiocatan@users.noreply.github.com> Date: Fri, 20 Aug 2021 12:03:40 -0300 Subject: [PATCH] changes to the documentation --- Chapter03/managing_views/src/views/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter03/managing_views/src/views/path.rs b/Chapter03/managing_views/src/views/path.rs index 36adf7b..bdef540 100644 --- a/Chapter03/managing_views/src/views/path.rs +++ b/Chapter03/managing_views/src/views/path.rs @@ -19,7 +19,7 @@ impl Path { /// To use this in a route, we have to reference it: /// /// ```rust - /// let path = Path{base: String::from("/base/")}; + /// let path = Path{prefix: String::from("/base/")}; /// app.route(&path.define(String::from("tail/path")), web::get().to(login::login)) /// ``` pub fn define(&self, following_path: String) -> String {