From 183e9ff248661db509a4196bdd586e3a78bae0c9 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 29 Sep 2014 08:58:08 +1000 Subject: [PATCH] Replace a deprecated method call. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 296ec8c..0a1a692 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -102,7 +102,7 @@ impl<'a> UncheckedAnyMutRefExt<'a> for &'a mut Any + 'a { /// assert_eq!(data.find::(), None); /// data.insert(Foo { str: "foo".to_string() }); /// assert_eq!(data.find(), Some(&Foo { str: "foo".to_string() })); -/// data.find_mut::().map(|foo| foo.str.push_char('t')); +/// data.find_mut::().map(|foo| foo.str.push('t')); /// assert_eq!(data.find::().unwrap().str.as_slice(), "foot"); /// ``` ///