Skip to content

Commit c1efb7f

Browse files
authored
Update introduction-to-ql.rst
1 parent 986c15c commit c1efb7f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/codeql/writing-codeql-queries/introduction-to-ql.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ Write a query which returns the length of the string ``"lgtm"``. (Hint: `here <h
6161

6262
➤ `Check your answer <#exercise-1>`__
6363

64-
There is often more than one way to define a query. For example, we can also write the above query in the shorter form:
65-
66-
.. code-block:: ql
67-
68-
select "lgtm".length()
69-
7064
Exercise 2 - Numbers
7165
~~~~~~~~~~~~~~~~~~~~
7266

@@ -182,6 +176,12 @@ Exercise 1
182176
from string s
183177
where s = "lgtm"
184178
select s.length()
179+
180+
There is often more than one way to define a query. For example, we can also write the above query in the shorter form:
181+
182+
.. code-block:: ql
183+
184+
select "lgtm".length()
185185
186186
Exercise 2
187187
~~~~~~~~~~

0 commit comments

Comments
 (0)