Skip to content

Commit e7f3e03

Browse files
committed
QL spec: Fix up pre-BigInt language
1 parent 253ccd1 commit e7f3e03

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ You can use the following binary operators in QL:
731731
+------------------------+--------+
732732

733733
If both expressions are numbers, these operators act as standard arithmetic operators. For
734-
example, ``10.6 - 3.2`` has value ``7.4``, ``123.456 * 0`` has value ``0``, and ``9 % 4`` has
734+
example, ``10.6 - 3.2`` has value ``7.4``, ``123.456 * 0`` has value ``0.0``, and ``9 % 4`` has
735735
value ``1`` (the remainder after dividing ``9`` by ``4``).
736736
If both operands are integers, then the result is an integer. Otherwise the result is a
737737
floating-point number.

docs/codeql/ql-language-reference/name-resolution.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ were defined in the :ref:`QL tutorials <ql-tutorials>`:
305305
The module namespace of ``Villagers`` has entries for:
306306
- The module ``S``.
307307
- Any modules exported by ``tutorial``.
308+
- The built-in top-level module ``QlBuiltins``.
308309

309310
The module namespace of ``S`` also has entries for the module ``S`` itself, and for any
310311
modules exported by ``tutorial``.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ An integer literal is a possibly negated sequence of decimal digits (``0`` throu
718718
Float literals (float)
719719
~~~~~~~~~~~~~~~~~~~~~~
720720

721-
A floating-point literals is a possibly negated two non-negative integers literals separated by a dot (``.``, U+002E). Here are some examples of float literals:
721+
A floating-point literal is a possibly negated pair of non-negative integer literals separated by a dot (``.``, U+002E). Here are some examples of float literals:
722722

723723
::
724724

0 commit comments

Comments
 (0)