Skip to content

Commit 31cbd28

Browse files
committed
Re-word PR 156
1 parent 487b821 commit 31cbd28

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_src/container-attrs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@
7070
Use the untagged enum representation for this enum. See [enum representations]
7171
for details on this representation.
7272

73-
When no variant matches, the error may be uninformative which can be improved
74-
with [`serde(expecting)`](#expecting).
73+
When no variant matches, `untagged` does not produce an informative error but
74+
this can be improved by adding an [`expecting`](#expecting) message.
7575

76-
In performance-critical code, checking each variant and processing the errors
77-
can be slow. In these cases, it may be better to hand-implement the
78-
deserialize trait for which [serde-untagged] may help.
76+
In performance-critical code, the implementation approach used by `untagged`
77+
can be costly. Consider implementing the Deserialize trait by hand or with the
78+
help of the [`serde-untagged`] crate.
7979

80-
[serde-untagged]: https://docs.rs/serde-untagged
80+
[`serde-untagged`]: https://docs.rs/serde-untagged
8181

8282
- ##### `#[serde(bound = "T: MyTrait")]` {#bound}
8383

0 commit comments

Comments
 (0)