Skip to content

Commit c9b1d65

Browse files
committed
remove spaces around dashes
1 parent 66afa4a commit c9b1d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/domain-modeling-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ class Dog(name: String, var age: Int) extends Pet(name):
449449

450450
val d = Dog("Fido", 1)
451451
```
452-
Traits are more flexible to compose --- you can mix in multiple traits, but only extend one class --- and should be preferred to classes and abstract classes most of the time.
452+
Traits are more flexible to compose---you can mix in multiple traits, but only extend one class---and should be preferred to classes and abstract classes most of the time.
453453
The rule of thumb is to use classes whenever you want to create instances of a particular type, and traits when you want to decompose and reuse behaviour.
454454

455455

0 commit comments

Comments
 (0)