Fix typo ql-design-patterns.md

Co-authored-by: Pavel Avgustinov <54942558+p0@users.noreply.github.com>
This commit is contained in:
Rasmus Wriedt Larsen
2020-11-10 15:39:45 +01:00
committed by GitHub
parent c04e96453d
commit 14236709f6

View File

@@ -20,7 +20,7 @@ abstract class MySpecialExpr extends Expr {
class ConcreteSubclass extends MySpecialExpr { ... }
```
While this allows users of the library to add new types of `MySpecialExpr` (like, in this case, `ConcreteSubclass), there is no way to override the implementations of `memberPredicate` of all extensions at once.
While this allows users of the library to add new types of `MySpecialExpr` (like, in this case, `ConcreteSubclass`), there is no way to override the implementations of `memberPredicate` of all extensions at once.
Applying the `::Range` pattern yields the following: