summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/shortcuts.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index d68faee258..12a32c760f 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -70,7 +70,7 @@ This example is equivalent to::
# View code here...
t = loader.get_template('myapp/template.html')
c = Context({'foo': 'bar'})
- r = HttpResponse(t.render(c),
+ return HttpResponse(t.render(c),
mimetype="application/xhtml+xml")
``get_object_or_404``