Fix doc tests

This commit is contained in:
Alex Crichton 2014-07-15 19:05:22 -07:00
parent 98a5e0e244
commit c4d9e5c0b4

View file

@ -29,7 +29,7 @@ use {Value, Table, Array, String, Integer, Float, Boolean, Parser};
/// let mut e = Encoder::new(); /// let mut e = Encoder::new();
/// my_struct.encode(&mut e).unwrap(); /// 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 { pub struct Encoder {