Permalink
Browse files

merged branch markstory/fix-308 (PR #373)

Commits
-------

eaa8995 Grammatical fix.

Discussion
----------

Grammatical fix.

A small grammatical fix for #308 + PR #372
  • Loading branch information...
2 parents cdd8351 + eaa8995 commit 5e61517a94c550be55623e418d1e8fb0f3c02853 @fabpot fabpot committed Jun 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/advanced.rst
View
@@ -267,7 +267,7 @@ Adding a function is similar to adding a filter. This can be done by calling the
You can also expose extension methods as functions in your templates::
- // $this is an object that implements instance of Twig_ExtensionInterface.
+ // $this is an object that implements Twig_ExtensionInterface.
$twig = new Twig_Environment($loader);
$twig->addFunction('otherFunction', new Twig_Function_Method($this, 'someMethod'));

0 comments on commit 5e61517

Please sign in to comment.