Skip to content

Commit 95b1c49

Browse files
authored
Merge pull request #14 from kayoub5/master
Fix typo in __overloads__
2 parents 6077016 + 686da14 commit 95b1c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy