We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a07313e + 017a74d commit e92c3b6Copy full SHA for e92c3b6
crates/toml_edit/README.md
@@ -16,14 +16,14 @@ relative order* of items.
16
## Example
17
18
```rust
19
-use toml_edit::{Document, value};
+use toml_edit::{DocumentMut, value};
20
21
fn main() {
22
let toml = r#"
23
"hello" = 'toml!' # comment
24
['a'.b]
25
"#;
26
- let mut doc = toml.parse::<Document>().expect("invalid doc");
+ let mut doc = toml.parse::<DocumentMut>().expect("invalid doc");
27
assert_eq!(doc.to_string(), toml);
28
// let's add a new key/value pair inside a.b: c = {d = "hello"}
29
doc["a"]["b"]["c"]["d"] = value("hello");
0 commit comments