Skip to content

Commit e28669e

Browse files
yofftausbn
andauthored
Apply suggestions from code review
Co-authored-by: Taus <[email protected]>
1 parent 47af3a6 commit e28669e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ import IterableUnpacking
15631563
* There are a number of patterns available for the match statement.
15641564
* Each one transfers data and content differently to its parts.
15651565
*
1566-
* Furthermore, given a successful match, we can infer some daa about
1566+
* Furthermore, given a successful match, we can infer some data about
15671567
* the subject. Consider the example:
15681568
* ```python
15691569
* match choice:
@@ -1581,7 +1581,7 @@ import IterableUnpacking
15811581
* By the binding rules, there is data flow from `choice` to `c`. But we
15821582
* can infer the value of `c` to be either `'y'` or `'Y'` if the match succeeds.
15831583
*
1584-
* We will treat such inference separately as guards. First we will model the data flow
1584+
* We will treat such inferences separately as guards. First we will model the data flow
15851585
* stemming from the bindings and the matching of shape. Below, 'subject' is not necessarily the
15861586
* top-level subject of the match, but rather the part recursively matched by the current pattern.
15871587
* For instance, in the example:
@@ -1696,7 +1696,7 @@ module MatchUnpacking {
16961696
* syntax (toplevel): `case *var:`
16971697
*
16981698
* We decompose this flow into a read step and a store step. The read step
1699-
* reads both tupe and list content, the store step only stores list content.
1699+
* reads both tuple and list content, the store step only stores list content.
17001700
* This way, we convert all content to list content.
17011701
*
17021702
* This is the read step.
@@ -1724,7 +1724,7 @@ module MatchUnpacking {
17241724
* syntax (toplevel): `case *var:`
17251725
*
17261726
* We decompose this flow into a read step and a store step. The read step
1727-
* reads both tupe and list content, the store step only stores list content.
1727+
* reads both tuple and list content, the store step only stores list content.
17281728
* This way, we convert all content to list content.
17291729
*
17301730
* This is the store step.

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class IterableElementNode extends Node, TIterableElementNode {
485485
}
486486

487487
/**
488-
* A synthetic node representing elemnt content of a star pattern.
488+
* A synthetic node representing element content of a star pattern.
489489
*/
490490
class StarPatternElementNode extends Node, TStarPatternElementNode {
491491
CfgNode consumer;

0 commit comments

Comments
 (0)