Skip to content

Commit 2d4fb2d

Browse files
xcoulonrozza
authored andcommitted
Update codecs.md
Fix typo
1 parent 0e6c1fc commit 2d4fb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/content/bson/codecs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The `DocumentCodec`, because it is constructed with a `CodecRegistry`, can now u
9898
values contained in each Document that it encodes.
9999

100100
One more problem remains, however. Consider the problem of encoding values to a BSON DateTime. An application may want to
101-
encode to a BSON DateTime instances of both the original Java `Date` class as well as the Java 8 `Instance` class. It's easy to create
101+
encode to a BSON DateTime instances of both the original Java `Date` class as well as the Java 8 `Instant` class. It's easy to create
102102
implemenations of `Codec<Date>` and `Codec<Instant>`, and either one can be used for encoding. But when decoding, a Document `Codec`
103103
also has to choose which Java type to decode a BSON DateTime to. Rather than hard-coding it in the `DocumentCodec`, the decision is
104104
abstracted via the `BsonTypeClassMap` class.

0 commit comments

Comments
 (0)