Skip to content

Commit f79ffe7

Browse files
committed
Fix docs: "branch" -> "acceptingValue"
1 parent 87f2e21 commit f79ffe7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-javascript.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The CodeQL library for JavaScript exposes the following extensible predicates:
2727
- **typeModel**\(type1, type2, path)
2828
- **summaryModel**\(type, path, input, output, kind)
2929
- **barrierModel**\(type, path, kind)
30-
- **barrierGuardModel**\(type, path, branch, kind)
30+
- **barrierGuardModel**\(type, path, acceptingValue, kind)
3131

3232
We'll explain how to use these using a few examples, and provide some reference material at the end of this article.
3333

docs/codeql/codeql-language-guides/customizing-library-models-for-python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The CodeQL library for Python exposes the following extensible predicates:
2727
- **typeModel**\(type1, type2, path)
2828
- **summaryModel**\(type, path, input, output, kind)
2929
- **barrierModel**\(type, path, kind)
30-
- **barrierGuardModel**\(type, path, branch, kind)
30+
- **barrierGuardModel**\(type, path, acceptingValue, kind)
3131

3232
We'll explain how to use these using a few examples, and provide some reference material at the end of this article.
3333

@@ -319,7 +319,7 @@ Consider the function ``url_has_allowed_host_and_scheme`` from the ``django.util
319319
if url_has_allowed_host_and_scheme(url, allowed_hosts=...): # The check guards the use of 'url', so it is safe.
320320
redirect(url) # This is safe.
321321
322-
We need to add a tuple ``(type, path, branch, kind)`` to the ``barrierGuardModel`` extensible predicate by updating a data extension file.
322+
We need to add a tuple ``(type, path, acceptingValue, kind)`` to the ``barrierGuardModel`` extensible predicate by updating a data extension file.
323323

324324
.. code-block:: yaml
325325

docs/codeql/codeql-language-guides/customizing-library-models-for-ruby.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The CodeQL library for Ruby exposes the following extensible predicates:
2828
- **typeModel**\(type1, type2, path)
2929
- **summaryModel**\(type, path, input, output, kind)
3030
- **barrierModel**\(type, path, kind)
31-
- **barrierGuardModel**\(type, path, branch, kind)
31+
- **barrierGuardModel**\(type, path, acceptingValue, kind)
3232

3333
We'll explain how to use these using a few examples, and provide some reference material at the end of this article.
3434

0 commit comments

Comments
 (0)