docs: correct to_bson complexity (#5334)

Signed-off-by: whn <142425816+Whning0513@users.noreply.github.com>
This commit is contained in:
whn
2026-08-28 13:27:18 +01:00
committed by GitHub
parent 3fa93dac65
commit 1ac268d409
+3 -1
View File
@@ -46,7 +46,9 @@ Strong guarantee: if an exception is thrown, there are no changes in the JSON va
## Complexity
Linear in the size of the JSON value `j`.
Proportional to the size of the JSON value `j` multiplied by its maximum nesting
depth, `O(n × d)`. BSON length prefixes are computed recursively before nested
values are written.
## Examples