fixed typo in the doc
authorFabien Potencier <fabien.potencier@gmail.com>
Mon, 11 Oct 2010 10:27:59 +0000 (12:27 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Mon, 11 Oct 2010 10:27:59 +0000 (12:27 +0200)
doc/04-Extending-Twig.markdown

index c1222e4..e4b3f0b 100644 (file)
@@ -460,7 +460,7 @@ Now, let's see the actual code of this class:
       {
         $lineno = $token->getLine();
         $name = $this->parser->getStream()->expect(Twig_Token::NAME_TYPE)->getValue();
-        $this->parser->getStream()->expect(Twig_Token::NAME_TYPE, '=');
+        $this->parser->getStream()->expect(Twig_Token::OPERATOR_TYPE, '=');
         $value = $this->parser->getExpressionParser()->parseExpression();
 
         $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);