Skip to content

Commit 1e45b7b

Browse files
committed
rust fixdoc
1 parent f9548f9 commit 1e45b7b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/de.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ enum DeserializerHint {
6767
/// Deserialize a `T` from the provided [`Bson`] value.
6868
///
6969
/// The [`Deserializer`] used by this function presents itself as human readable, whereas the
70-
/// one used in [`from_slice`] does not. This means that this function may deserialize differently
71-
/// than [`from_slice`] for types that change their deserialization logic depending on whether
72-
/// the format is human readable or not.
70+
/// one used in [`deserialize_from_slice`] does not. This means that this function may deserialize
71+
/// differently than [`deserialize_from_slice`] for types that change their deserialization logic
72+
/// depending on whether the format is human readable or not.
7373
pub fn deserialize_from_bson<T>(bson: Bson) -> Result<T>
7474
where
7575
T: DeserializeOwned,
@@ -88,9 +88,9 @@ where
8888
/// Deserialize a `T` from the provided [`Document`].
8989
///
9090
/// The [`Deserializer`] used by this function presents itself as human readable, whereas the
91-
/// one used in [`from_slice`] does not. This means that this function may deserialize differently
92-
/// than [`from_slice`] for types that change their deserialization logic depending on whether
93-
/// the format is human readable or not.
91+
/// one used in [`deserialize_from_slice`] does not. This means that this function may deserialize
92+
/// differently than [`deserialize_from_slice`] for types that change their deserialization logic
93+
/// depending on whether the format is human readable or not.
9494
pub fn deserialize_from_document<T>(doc: Document) -> Result<T>
9595
where
9696
T: DeserializeOwned,

src/raw/array_buf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use super::{document_buf::BindRawBsonRef, RawArrayIter};
99

1010
/// An owned BSON array value (akin to [`std::path::PathBuf`]), backed by a buffer of raw BSON
1111
/// bytes. This type can be used to construct owned array values, which can be used to append to
12-
/// [`RawDocumentBuf`] or as a field in a [`Deserialize`] struct.
12+
/// [`RawDocumentBuf`] or as a field in a [`Deserialize`](serde::Deserialize) struct.
1313
///
1414
/// Iterating over a [`RawArrayBuf`] yields either an error or a [`RawBson`](crate::raw::RawBson)
1515
/// value that borrows from the original document without making any additional allocations.

src/ser.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ fn write_binary<W: Write>(mut writer: W, bytes: &[u8], subtype: BinarySubtype) -
9595
/// Encode a `T` Serializable into a [`Bson`] value.
9696
///
9797
/// The [`Serializer`] used by this function presents itself as human readable, whereas the
98-
/// one used in [`to_vec`] does not. This means that this function will produce different BSON than
99-
/// [`to_vec`] for types that change their serialization output depending on whether
100-
/// the format is human readable or not.
98+
/// one used in [`serialize_to_vec`] does not. This means that this function will produce different
99+
/// BSON than [`serialize_to_vec`] for types that change their serialization output depending on
100+
/// whether the format is human readable or not.
101101
pub fn serialize_to_bson<T>(value: &T) -> Result<Bson>
102102
where
103103
T: Serialize + ?Sized,
@@ -123,9 +123,9 @@ where
123123
/// Serialize a `T` Serializable into a BSON [`Document`].
124124
///
125125
/// The [`Serializer`] used by this function presents itself as human readable, whereas the
126-
/// one used in [`to_vec`] does not. This means that this function will produce different BSON than
127-
/// [`to_vec`] for types that change their serialization output depending on whether
128-
/// the format is human readable or not.
126+
/// one used in [`serialize_to_vec`] does not. This means that this function will produce different
127+
/// BSON than [`serialize_to_vec`] for types that change their serialization output depending on
128+
/// whether the format is human readable or not.
129129
pub fn serialize_to_document<T>(value: &T) -> Result<Document>
130130
where
131131
T: Serialize + ?Sized,

0 commit comments

Comments
 (0)