summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-07-30 12:37:38 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-07-30 12:37:38 +0000
commit8880fdd9ee7cd551ba10d34d80fa6092494c47ec (patch)
treea16aa7e2bc9170a012854a6609b54749062f92e4 /docs
parentf7d123a731e62af9a792623812bef632f3142547 (diff)
Fixed #7935 -- Corrected typo in template docs, plus slightly clarified the language. Thanks to jturnbull for the suggestion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index 4bf8214a2a..587c5915f0 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -703,9 +703,9 @@ You can loop over a list in reverse by using ``{% for obj in list reversed %}``.
**New in Django development version**
If you need to loop over a list of lists, you can unpack the values
-in eachs sub-list into a set of known names. For example, if your context contains
-a list of (x,y) coordinates called ``points``, you could use the following
-to output the list of points::
+in each sub-list into individual variables. For example, if your context
+contains a list of (x,y) coordinates called ``points``, you could use the
+following to output the list of points::
{% for x, y in points %}
There is a point at {{ x }},{{ y }}