From c4d9e5c0b4f867a00e4a1042d59549fcdb11a074 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 15 Jul 2014 19:05:22 -0700 Subject: Fix doc tests --- src/serialization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/serialization.rs b/src/serialization.rs index 4397294..a344278 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -29,7 +29,7 @@ use {Value, Table, Array, String, Integer, Float, Boolean, Parser}; /// let mut e = Encoder::new(); /// my_struct.encode(&mut e).unwrap(); /// -/// assert_eq!(e.toml.find_equiv(&"foo"), Some(&Integer(4))) +/// assert_eq!(e.toml.find(&"foo".to_string()), Some(&Integer(4))) /// # } /// ``` pub struct Encoder { -- cgit v1.2.3