ntex-rs / website

The Ntex website.
https://ntex.rs
Apache License 2.0
8 stars 2 forks source link

fix: example mentions `web::Data` but refers to plain state struct #11

Closed LeoniePhiline closed 2 months ago

LeoniePhiline commented 2 months ago

The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions web::Data.

Since what is being created is a plain struct, the example's comment is reworded to // Note: app state created _outside_ HttpServer::new closure.

Closes https://github.com/ntex-rs/website/issues/10

leon3s commented 2 months ago

Thanks!