Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

LeoniePhiline
Copy link
Contributor

@LeoniePhiline LeoniePhiline commented Jul 11, 2024

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 #10

@leon3s
Copy link
Member

leon3s commented Jul 11, 2024

Thanks!

@leon3s leon3s merged commit 6c93ccb into ntex-rs:master Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Mutable app state example mentions web::Data which does not (any more) seem to exist
2 participants