Fix a deprecation in the documentation
This commit is contained in:
parent
ac6f3b27e0
commit
796a127adf
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue