Skip to content

Commit bab29e4

Browse files
committed
Add alias for primitive.E in bson package
GODRIVER-677 Change-Id: I5774a13a12aca7dbfd5486dc0a8e14fadb83ce78
1 parent 168c64d commit bab29e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bson/bson.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type Zeroer interface {
3838
// order is not important, a map is more comfortable and concise.
3939
type D = primitive.D
4040

41+
// E represents a BSON element for a D. It is usually used inside a D.
42+
type E = primitive.E
43+
4144
// M is an unordered, concise representation of a BSON Document. It should generally be used to
4245
// serialize BSON when the order of the elements of a BSON document do not matter. If the element
4346
// order matters, use a D instead.

0 commit comments

Comments
 (0)