We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b069ef5 commit 767cda6Copy full SHA for 767cda6
README.md
@@ -107,7 +107,7 @@ BSON documents are ordered maps of UTF-8 encoded strings to BSON values. They ar
107
reader containing BSON data or via the `doc!` macro:
108
```rust
109
let mut bytes = hex::decode("0C0000001069000100000000").unwrap();
110
-let doc = Document::decode(&mut bytes.as_slice()).unwrap(); // { "i": 1 }
+let doc = Document::from_reader(&mut bytes.as_slice()).unwrap(); // { "i": 1 }
111
112
let doc = doc! {
113
"hello": "world",
0 commit comments