diff --git a/reactive_graph/src/owner/context.rs b/reactive_graph/src/owner/context.rs index 288974aac9..3128959a93 100644 --- a/reactive_graph/src/owner/context.rs +++ b/reactive_graph/src/owner/context.rs @@ -384,7 +384,7 @@ pub fn take_context() -> Option { /// provide_context(String::from("foo")); /// /// Effect::new(move |_| { -/// let value = with_context::(|val| val.to_string()) +/// let value = with_context::(|val| val.to_string()) /// .expect("could not find String in context"); /// assert_eq!(value, "foo"); /// }); @@ -422,7 +422,7 @@ pub fn with_context(cb: impl FnOnce(&T) -> R) -> Option { /// provide_context(String::from("foo")); /// /// Effect::new(move |_| { -/// let value = update_context::(|val| { +/// let value = update_context::(|val| { /// std::mem::replace(val, "bar".to_string()) /// }) /// .expect("could not find String in context");