update docs example
This commit is contained in:
1 parent
d238481936
commit
90b4dd806e
1 file changed
+1
-1
@@ -7,7 +7,7 @@ fn main() {}
|
||||
struct AppSettings {}
|
||||
|
||||
// ANCHOR: wrap_context
|
||||
fn use_settings(cx: &ScopeState) -> UseSharedState<AppSettings> {
|
||||
fn use_settings(cx: &ScopeState) -> &UseSharedState<AppSettings> {
|
||||
use_shared_state::<AppSettings>(cx).expect("App settings not provided")
|
||||
}
|
||||
// ANCHOR_END: wrap_context
|
||||
Reference in new issue
Block a user