Skip to content

Commit 2ce77b1

Browse files
dblockCopilot
andcommitted
Fix 'sub class' -> 'subclass' spelling in README.md
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ea7114e commit 2ce77b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ The `DuplicateValueError` exception is raised to be consistent with the unique k
232232

233233
### Inheritance
234234

235-
When inheriting from a `Ruby::Enum` class, all defined enums in the parent class will be accessible in sub classes as well. Sub classes can also provide extra enums, as usual.
235+
When inheriting from a `Ruby::Enum` class, all defined enums in the parent class will be accessible in subclasses as well. Subclasses can also provide extra enums, as usual.
236236

237237
``` ruby
238238
class OrderState
@@ -270,7 +270,7 @@ ShippedOrderState.key?(:CREATED) # true
270270
ShippedOrderState.value(:CREATED) # 'CREATED'
271271
```
272272

273-
A sub class may redefine a key or value already used by a parent class without raising `DuplicateKeyError` or `DuplicateValueError`; its own definition takes precedence.
273+
A subclass may redefine a key or value already used by a parent class without raising `DuplicateKeyError` or `DuplicateValueError`; its own definition takes precedence.
274274

275275
``` ruby
276276
class ShippedOrderState < OrderState

0 commit comments

Comments
 (0)