Skip to content

Commit

Permalink
Minor language update. (#5261)
Browse files Browse the repository at this point in the history
How about adding 'for example' to create room for other natural cases?
  • Loading branch information
polina-c authored Oct 19, 2023
1 parent 2f5f462 commit 0e919c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effective-dart/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,8 @@ class _Favorites {
In idiomatic Dart, classes define *kinds of objects*. A type that is never
instantiated is a code smell.

However, this isn't a hard rule. With constants and enum-like types, it may be
natural to group them in a class.
However, this isn't a hard rule. For example, with constants and enum-like types,
it may be natural to group them in a class.

{:.good}
<?code-excerpt "design_bad.dart (class-only-static-exception)"?>
Expand Down

0 comments on commit 0e919c1

Please sign in to comment.