From 91f567b71173ef9346417b944402ade2f4b6b5ba Mon Sep 17 00:00:00 2001 From: Zak Stucke Date: Sat, 23 Nov 2024 13:45:02 +0200 Subject: [PATCH] Fix doctest --- reactive_graph/src/owner/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");