Skip to content

Commit fe93ddb

Browse files
committed
rename OneTwoFinalExtension to distinguish from other example
1 parent 0b4b2d0 commit fe93ddb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/codeql/ql-language-reference/types.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ For example, extending the class from the :ref:`first example <defining-a-class>
400400
401401
final class FinalOneTwoThree = OneTwoThree;
402402
403-
class OneTwo extends FinalOneTwoThree {
404-
OneTwo() {
403+
class OneTwoFinalExtension extends FinalOneTwoThree {
404+
OneTwoFinalExtension() {
405405
this = 1 or this = 2
406406
}
407407
@@ -431,11 +431,11 @@ final extensions leave the extended type unchanged:
431431
| 3 | One, two or three: 3 |
432432
+---+-------------------------+
433433

434-
However, when calling ``getAString()`` on ``OneTwo``, the original definition is shadowed:
434+
However, when calling ``getAString()`` on ``OneTwoFinalExtension``, the original definition is shadowed:
435435

436436
.. code-block:: ql
437437
438-
from OneTwo o
438+
from OneTwoFinalExtension o
439439
select o, o.getAString()
440440
441441
+---+-------------------------+

0 commit comments

Comments
 (0)