Skip to content

Commit aad3e06

Browse files
aibaarsnickrolfe
andauthored
Apply suggestions from code review
Co-authored-by: Nick Rolfe <[email protected]>
1 parent 6a0a81b commit aad3e06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/codeql/codeql-language-guides/abstract-syntax-tree-classes-for-working-with-ruby-programs.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,9 @@ All classes in this subsection are subclasses of VariableAccess_.
421421
Desugaring
422422
~~~~~~~~~~
423423

424-
Certain Ruby language features are shorthands for a common operations that could also be expressed in an alternate, more verbose, forms.
424+
Certain Ruby language features are shorthands for common operations that could also be expressed in other, more verbose, forms.
425425
Such language features are typically referred to as "syntactic sugar", and make it easier for programmers to write and read code. This is
426-
great for programmers. Source code analyzers on the other hand, this lead to additional work as they need to understand the short
427-
hand notation as well as the long form. To make analysis easier, CodeQL automatically "desugars" Ruby code, effectively rewriting
426+
great for programmers. For source code analyzers, however, this leads to additional work as they need to understand the short-hand notation as well as the long form. To make analysis easier, CodeQL automatically "desugars" Ruby code, effectively rewriting
428427
rich syntactic constructs into equivalent code that uses simpler syntactic contructs.
429428

430429
For example, supposing that ``x`` is an object with an attribute ``foo``, the assignment::

0 commit comments

Comments
 (0)