Skip to content

Commit 05b7447

Browse files
yofftausbn
andauthored
Apply suggestions from code review
Co-authored-by: Taus <tausbn@github.com>
1 parent 7d086b2 commit 05b7447

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private Node update(Node node) {
253253
*
254254
* When a call contains more positional arguments than there are positional parameters,
255255
* the extra positional arguments are passed as a tuple to a starred parameter. This is
256-
* achieved by synthesising a node `TPosOverflowNode(call, callable)`
256+
* achieved by synthesizing a node `TPosOverflowNode(call, callable)`
257257
* that represents the tuple of extra positional arguments. There is a store step from each
258258
* extra positional argument to this node.
259259
*
@@ -266,7 +266,7 @@ private Node update(Node node) {
266266
*
267267
* When a call contains keyword arguments that do not correspond to keyword parameters, these
268268
* extra keyword arguments are passed as a dictionary to a doubly starred parameter. This is
269-
* achieved by synthesising a node `TKwOverflowNode(call, callable)`
269+
* achieved by synthesizing a node `TKwOverflowNode(call, callable)`
270270
* that represents the dictionary of extra keyword arguments. There is a store step from each
271271
* extra keyword argument to this node.
272272
*
@@ -295,7 +295,7 @@ private Node update(Node node) {
295295
* ```python
296296
* f(0, 1, [*t], [**d])
297297
* ```
298-
* where `[` and `]` denotes synthesisezed nodes, so `[*t]` is the synthesized tuple argument
298+
* where `[` and `]` denotes synthesized nodes, so `[*t]` is the synthesized tuple argument
299299
* `TPosOverflowNode` and `[**d]` is the synthesized dictionary argument `TKwOverflowNode`.
300300
* There will be a store step from `2` to `[*t]` at pos `0` and one from `3` to `[**d]` at key
301301
* `a`.
@@ -304,11 +304,11 @@ private Node update(Node node) {
304304
* ```python
305305
* f(0, **{"y": 1, "a": 3})
306306
* ```
307-
* no tuple arguemnt is synthesized. It is modelled as
307+
* no tuple argument is synthesized. It is modelled as
308308
* ```python
309309
* f(0, [y=1], [**d])
310310
* ```
311-
* where `[y=1]` is the synthesised unpacked argument `TKwUnpacked` (with `name` = `y`). There is
311+
* where `[y=1]` is the synthesized unpacked argument `TKwUnpacked` (with `name` = `y`). There is
312312
* a read step from `**{"y": 1, "a": 3}` to `[y=1]` at key `y` to get the value passed to the parameter
313313
* `y`. There is a dataflow step from `**{"y": 1, "a": 3}` to `[**d]` to transfer the content and
314314
* a clearing of content at key `y` for node `[**d]`, since that value has been unpacked.

0 commit comments

Comments
 (0)