summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-05-01 14:54:29 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-05-01 14:54:29 +0200
commit92bb3cf12120d03a4aa2e4731b7037dee89f94a8 (patch)
treebeb089c048befeb9b2008196aa8275cba88131ea /docs
parent89d31221df8dad5678650b9564de2d1035c6c260 (diff)
downloadfactory-boy-92bb3cf12120d03a4aa2e4731b7037dee89f94a8.tar
factory-boy-92bb3cf12120d03a4aa2e4731b7037dee89f94a8.tar.gz
Fix typo in docs/subfactory.rst (Closes #13).
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/subfactory.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/subfactory.rst b/docs/subfactory.rst
index 8bc1d8f..1815312 100644
--- a/docs/subfactory.rst
+++ b/docs/subfactory.rst
@@ -14,7 +14,7 @@ This should be used when defining a :py:class:`~factory.Factory` attribute that
# Various fields
first_name = 'John'
- last_name = factory.Sequence(lambda n: 'D%se' % (o * n))
+ last_name = factory.Sequence(lambda n: 'D%se' % ('o' * n)) # De, Doe, Dooe, Doooe, ...
email = factory.LazyAttribute(lambda o: '%s.%s@example.org' % (o.first_name.lower(), o.last_name.lower()))
# A factory for an object with a 'User' field