@@ -183,17 +183,17 @@ impl RawDocumentBuf {
183183 /// the documentation for [BindRawBsonRef] for more details.
184184 /// ```
185185 /// # use bson::error::Error;
186- /// use bson::{doc, raw::{RawBsonRef, RawDocumentBuf}};
186+ /// use bson::{doc, raw::{cstr, RawBsonRef, RawDocumentBuf}};
187187 ///
188188 /// let mut doc = RawDocumentBuf::new();
189189 /// // `&str` and `i32` both convert to `RawBsonRef`
190- /// doc.append("a string", "some string");
191- /// doc.append("an integer", 12_i32);
190+ /// doc.append(cstr!( "a string") , "some string");
191+ /// doc.append(cstr!( "an integer") , 12_i32);
192192 ///
193193 /// let mut subdoc = RawDocumentBuf::new();
194- /// subdoc.append("a key", true);
195- /// doc.append("a borrowed document", &subdoc);
196- /// doc.append("an owned document", subdoc);
194+ /// subdoc.append(cstr!( "a key") , true);
195+ /// doc.append(cstr!( "a borrowed document") , &subdoc);
196+ /// doc.append(cstr!( "an owned document") , subdoc);
197197 ///
198198 /// let expected = doc! {
199199 /// "a string": "some string",
0 commit comments