mirror of
https://github.com/actix/actix-website
synced 2024-12-18 01:43:59 +01:00
Minor tweaks
This commit is contained in:
parent
4521375534
commit
31630f61f8
@ -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" >}}
|
{{< 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" >}}
|
{{< include-example example="application" file="state.rs" section="make_app_mutable" >}}
|
||||||
|
|
||||||
|
@ -45,9 +45,9 @@ pub fn main() {
|
|||||||
})
|
})
|
||||||
.route("/", web::get().to(index))
|
.route("/", web::get().to(index))
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8088")
|
.bind("127.0.0.1:8088")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.run()
|
.run()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
// </start_app>
|
// </start_app>
|
||||||
|
Loading…
Reference in New Issue
Block a user