Skip to content

Commit e3726f9

Browse files
committed
Small cleanup for serde module docs
1 parent ec034c2 commit e3726f9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/serde_untagged.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! Untagged serialization/deserialization support for Either<L, R>.
1+
//! Untagged serialization/deserialization support for `Either<L, R>`.
22
//!
33
//! `Either` uses default, externally-tagged representation.
44
//! However, sometimes it is useful to support several alternative types.
5-
//! For example, we may have a field which is generally Map<String, i32>
6-
//! but in typical cases Vec<String> would suffice, too.
5+
//! For example, we may have a field which is generally a `HashMap<String, i32>`
6+
//! but in typical cases `Vec<String>` would suffice, too.
77
//!
88
//! ```rust
99
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {

src/serde_untagged_optional.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! Untagged serialization/deserialization support for Option<Either<L, R>>.
1+
//! Untagged serialization/deserialization support for `Option<Either<L, R>>`.
22
//!
33
//! `Either` uses default, externally-tagged representation.
44
//! However, sometimes it is useful to support several alternative types.
5-
//! For example, we may have a field which is generally Map<String, i32>
6-
//! but in typical cases Vec<String> would suffice, too.
5+
//! For example, we may have a field which is generally a `HashMap<String, i32>`
6+
//! but in typical cases `Vec<String>` would suffice, too.
77
//!
88
//! ```rust
99
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)