diff --git a/crates/toml_edit/README.md b/crates/toml_edit/README.md index b6d1275b..bdc75693 100644 --- a/crates/toml_edit/README.md +++ b/crates/toml_edit/README.md @@ -16,14 +16,14 @@ relative order* of items. ## Example ```rust -use toml_edit::{Document, value}; +use toml_edit::{DocumentMut, value}; fn main() { let toml = r#" "hello" = 'toml!' # comment ['a'.b] "#; - let mut doc = toml.parse::().expect("invalid doc"); + let mut doc = toml.parse::().expect("invalid doc"); assert_eq!(doc.to_string(), toml); // let's add a new key/value pair inside a.b: c = {d = "hello"} doc["a"]["b"]["c"]["d"] = value("hello");