diff --git a/doc/examples/aggregation.rst b/doc/examples/aggregation.rst index 82af59c4c..1b5c4202e 100644 --- a/doc/examples/aggregation.rst +++ b/doc/examples/aggregation.rst @@ -174,6 +174,7 @@ reduce function. Here we are doing a simple group and count of the occurrences of ``x`` values: .. doctest:: + >>> from bson.code import Code >>> reducer = Code(""" ... function(obj, prev){