From: Chris Morgan Date: Sun, 28 Sep 2014 22:58:08 +0000 (+1000) Subject: Replace a deprecated method call. X-Git-Tag: 0.9.1~12 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/183e9ff248661db509a4196bdd586e3a78bae0c9 Replace a deprecated method call. --- 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"); /// ``` ///