Fix a deprecation in the documentation

This commit is contained in:
Alex Crichton 2014-11-08 09:59:00 -08:00
parent ac6f3b27e0
commit 796a127adf

View file

@ -30,7 +30,7 @@ use {Value, Table, Array, Integer, Float, Boolean, Parser, TomlTable};
/// 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(&"foo".to_string()), Some(&Integer(4))) /// assert_eq!(e.toml.get(&"foo".to_string()), Some(&Integer(4)))
/// # } /// # }
/// ``` /// ```
pub struct Encoder { pub struct Encoder {