Skip to content

Commit 60ea9ce

Browse files
p0RasmusWL
andauthored
Update docs/ql-design-patterns.md
Co-authored-by: Rasmus Wriedt Larsen <rasmuswl@github.com>
1 parent 1423670 commit 60ea9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ql-design-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The key element of the pattern is to provide a field of type `MySpecialExpr::Ran
6060

6161
</details>
6262

63-
Note, previously we used to write `MySpecialExpr() { this = self }`, but we now recommend using `MySpecialExpr() { this = range }` instead to avoid anyone mistakenly thinking that `self` and `this` are synonyms in general.
63+
Note that in some libraries, the `range` field is in fact called `self`. While we do recommend using `range` for consistency, the name of the field does not matter (and using `range` avoids confusion in contexts like Python analysis that has strong usage of `self`).
6464

6565
### Rationale
6666

0 commit comments

Comments
 (0)