diff --git a/src/serialization.rs b/src/serialization.rs index fda7c06..91f7924 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -30,7 +30,7 @@ use {Value, Table, Array, Integer, Float, Boolean, Parser, TomlTable}; /// let mut e = Encoder::new(); /// 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 {