Skip to content

Commit 686da14

Browse files
committed
Fix typo in __overloads__
1 parent 6077016 commit 686da14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ iPy compatible "Overloads", on a class:
124124
from System import String, Char, Int32
125125

126126
s = String.Overloads[Char, Int32]('A', 10)
127-
s = String.__overloads[__Char, Int32]('A', 10)
127+
s = String.__overloads__[Char, Int32]('A', 10)
128128
```
129129

130130
## Using Generics
@@ -242,7 +242,7 @@ from System import Console
242242

243243
Console.WriteLine.Overloads[bool](true)
244244
Console.WriteLine.Overloads[str]("true")
245-
Console.WriteLine.__overloads[__int](42)
245+
Console.WriteLine.__overloads__[int](42)
246246
```
247247

248248
Similarly, generic methods may be bound at runtime using the subscript

0 commit comments

Comments
 (0)