Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5e61517a94c550be55623e418d1e8fb0f3c02853 2 parents cdd8351 + eaa8995
@fabpot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  doc/advanced.rst
View
2  doc/advanced.rst
@@ -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'));
Please sign in to comment.
Something went wrong with that request. Please try again.