Skip to content

Commit f0659fe

Browse files
authored
Corrección Roadmap 23 + Nuevo ejercicio 24
Se corrige error tipográfico
1 parent 3b32781 commit f0659fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Roadmap/23 - SINGLETON/python/mouredev.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"""
44

55

6-
class Sigleton:
6+
class Singleton:
77

88
_instance = None
99

1010
def __new__(cls):
1111
if not cls._instance:
12-
cls._instance = super(Sigleton, cls).__new__(cls)
12+
cls._instance = super(Singleton, cls).__new__(cls)
1313
return cls._instance
1414

1515

16-
sigleton1 = Sigleton()
17-
print(sigleton1)
18-
sigleton2 = Sigleton()
19-
print(sigleton2)
16+
singleton1 = Singleton()
17+
print(singleton1)
18+
singleton2 = Singleton()
19+
print(singleton2)
2020

21-
print(sigleton1 is sigleton2)
21+
print(singleton1 is singleton2)
2222

2323
"""
2424
Extra

0 commit comments

Comments
 (0)