diff --git a/content/docs/application.md b/content/docs/application.md index 1d6fb44..4ba4f27 100644 --- a/content/docs/application.md +++ b/content/docs/application.md @@ -66,7 +66,7 @@ In the following example, we will write an application with mutable, shared stat {{< include-example example="application" file="state.rs" section="setup_mutable" >}} -and initialize in in an App: +and register the data in an App: {{< include-example example="application" file="state.rs" section="make_app_mutable" >}} diff --git a/examples/application/src/state.rs b/examples/application/src/state.rs index 3ca179c..f5702b3 100644 --- a/examples/application/src/state.rs +++ b/examples/application/src/state.rs @@ -45,9 +45,9 @@ pub fn main() { }) .route("/", web::get().to(index)) }) - .bind("127.0.0.1:8088") - .unwrap() - .run() - .unwrap(); + .bind("127.0.0.1:8088") + .unwrap() + .run() + .unwrap(); } //