Skip to content

Commit f98491a

Browse files
shati-pateljf205
andauthored
Apply suggestions from code review
Co-authored-by: James Fletcher <[email protected]>
1 parent 45bd492 commit f98491a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/language/learn-ql/go/library-modeling-go.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ outputs to a function. The options are:
6868
* one of the parameters (``outp.isParameter(i)``)
6969
* one of the results (``outp.isResult(i)``, or ``outp.isResult`` if there is only one result)
7070

71-
Here is an example from ``Gin.qll``, slightly modified for brevity.
71+
Here is an example from ``Gin.qll``, which has been slightly simplified.
7272

7373
.. code-block:: ql
7474
@@ -89,8 +89,8 @@ the receiver to the first result. In other words, if ``p`` has type
8989
Sanitizers
9090
----------
9191

92-
It is not necessary to indicate that library functions are sanitizers -
93-
because their bodies are not analyzed it is assumed that data does not
92+
It is not necessary to indicate that library functions are sanitizers.
93+
Their bodies are not analyzed, so it is assumed that data does not
9494
flow through them.
9595

9696
Sinks
@@ -101,13 +101,12 @@ However, you can use library models to indicate when functions belong to
101101
special categories. Queries can then use these categories when specifying
102102
sinks. Classes representing these special categories are contained in
103103
``ql/src/semmle/go/Concepts.qll`` in the `CodeQL for Go repository
104-
<https://github.com/github/codeql-go/blob/main/ql/src/semmle/go/Concepts.qll>`__,
105-
including classes for logger mechanisms,
104+
<https://github.com/github/codeql-go/blob/main/ql/src/semmle/go/Concepts.qll>`__.
105+
``Concepts.qll`` includes classes for logger mechanisms,
106106
HTTP response writers, HTTP redirects, and marshaling and unmarshaling
107107
functions.
108108

109-
Here is a short example from ``Stdlib.qll``, slightly modified for
110-
brevity.
109+
Here is a short example from ``Stdlib.qll``, which has been slightly simplified.
111110

112111
.. code-block:: ql
113112

0 commit comments

Comments
 (0)