Skip to content

Commit 501841c

Browse files
committed
minor symfony#16262 Correct spelling & grammar in 4.4 components/expression_language/ (gnito-org)
This PR was merged into the 4.4 branch. Discussion ---------- Correct spelling & grammar in 4.4 components/expression_language/ <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- bf9f218 Correct spelling & grammar in 4.4 components/expression_language/
2 parents a9c2ccc + bf9f218 commit 501841c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/expression_language/ast.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Dumping and Manipulating the AST of Expressions
66
===============================================
77

8-
Manipulating or inspecting the expressions created with the ExpressionLanguage
9-
component is difficult because they are plain strings. A better approach is to
8+
It’s difficult to manipulate or inspect the expressions created with the ExpressionLanguage
9+
component, because the expressions are plain strings. A better approach is to
1010
turn those expressions into an AST. In computer science, `AST`_ (*Abstract
1111
Syntax Tree*) is *"a tree representation of the structure of source code written
1212
in a programming language"*. In Symfony, a ExpressionLanguage AST is a set of

components/expression_language/caching.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The ``evaluate()`` method needs to loop through the "nodes" (pieces of an
2525
expression saved in the ``ParsedExpression``) and evaluate them on the fly.
2626

2727
To save time, the ``ExpressionLanguage`` caches the ``ParsedExpression`` so
28-
it can skip the tokenize and parse steps with duplicate expressions. The
28+
it can skip the tokenization and parsing steps with duplicate expressions. The
2929
caching is done by a PSR-6 `CacheItemPoolInterface`_ instance (by default, it
3030
uses an :class:`Symfony\\Component\\Cache\\Adapter\\ArrayAdapter`). You can
3131
customize this by creating a custom cache pool or using one of the available

components/expression_language/syntax.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Comparison Operators
195195

196196
$expressionLanguage->evaluate('not ("foo" matches "/bar/")'); // returns true
197197

198-
You must use parenthesis because the unary operator ``not`` has precedence
198+
You must use parentheses because the unary operator ``not`` has precedence
199199
over the binary operator ``matches``.
200200

201201
Examples::

0 commit comments

Comments
 (0)