Skip to content

Commit 108d0d8

Browse files
committed
Fix spelling errors
1 parent da9e437 commit 108d0d8

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/scripts/cspell-custom-words-common.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Chacon
1818
Charette
1919
Christel
2020
Codecademy
21+
codeimporter
2122
Coghlan
2223
Cormen
2324

content/programming/oop/class-relations-association.en.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Student:
8282
self.name = name
8383
self.courses = []
8484

85-
def enroll(self, course):
85+
def enrol(self, course):
8686
self.courses.append(course)
8787
course.add_student(self)
8888

@@ -106,10 +106,10 @@ student2 = Student("Bob")
106106
math_course = Course("Mathematics")
107107
physics_course = Course("Physics")
108108

109-
# Enrolling students in courses
110-
student1.enroll(math_course)
111-
student1.enroll(physics_course)
112-
student2.enroll(math_course)
109+
# enrolling students in courses
110+
student1.enrol(math_course)
111+
student1.enrol(physics_course)
112+
student2.enrol(math_course)
113113

114114
print(student1.display_courses())
115115
print(math_course.display_students())
@@ -124,7 +124,7 @@ classDiagram
124124
class Student {
125125
+name: string
126126
+courses: list
127-
+enroll(course)
127+
+enrol(course)
128128
+display_courses()
129129
}
130130
class Course {
@@ -133,7 +133,7 @@ classDiagram
133133
+add_student(student)
134134
+display_students()
135135
}
136-
Student "0..*" <--> "0..*" Course : enrolls in >
136+
Student "0..*" <--> "0..*" Course : enrols in >
137137
end
138138
{{< /mermaid >}}
139139

0 commit comments

Comments
 (0)