Skip to content

Commit 6e07bd1

Browse files
committed
Bson documentation tweaks
1 parent 29a8526 commit 6e07bd1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/reference/content/bson/codecs.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ to determine with type to decode each BSON value to, then use the `CodecRegistry
145145

146146
Finally, we create a `CodecRegistry` instance
147147

148-
```java
149-
CodecRegistry defaultCodecRegistry = ...
150-
DocumentCodecProvider documentCodecProvider = ...
151-
Codec<Instant> instantCodec = ...
152-
codecRegistry = CodecRegistries.fromRegistries(CodecRegistries.fromCodecs(instantCodec),
153-
CodecRegistries.fromProviders(documentCodecProvider),
154-
defaultCodecRegistry);
148+
```bash
149+
CodecRegistry defaultCodecRegistry = ...
150+
DocumentCodecProvider documentCodecProvider = ...
151+
Codec<Instant> instantCodec = ...
152+
codecRegistry = CodecRegistries.fromRegistries(CodecRegistries.fromCodecs(instantCodec),
153+
CodecRegistries.fromProviders(documentCodecProvider),
154+
defaultCodecRegistry);
155155
```
156156

157157
using two additional static factory methods from the `CodecRegistries` class: one that takes a list of `CodecProvider`s and one which

docs/reference/content/bson/documents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ There is less code to write, but runtime errors are possible if you inadvertentl
5050

5151
The most commonly used value types are:
5252

53-
| BSON type | Java type |
54-
|-----------|-------------------------|
53+
| BSON type | Java type |
54+
|-----------|---------------------------|
5555
| Document | `org.bson.Document` |
5656
| Array | `java.util.List` |
5757
| Date | `java.util.Date` |

0 commit comments

Comments
 (0)