diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt
index 7c5eb5791a..c3a4aa2bec 100644
--- a/docs/topics/db/aggregation.txt
+++ b/docs/topics/db/aggregation.txt
@@ -70,7 +70,7 @@ In a hurry? Here's how to do common aggregate queries, assuming the models above
     # Difference between the highest priced book and the average price of all books.
     >>> from django.db.models import FloatField
     >>> Book.objects.aggregate(
-    ...     price_diff=Max('price', output_field=FloatField()) - Avg('price')))
+    ...     price_diff=Max('price', output_field=FloatField()) - Avg('price'))
     {'price_diff': 46.85}
 
     # All the following queries involve traversing the Book<->Publisher