diff --git a/ch03/ex3-5.md b/ch03/ex3-5.md index 2588ea8..33d6bf5 100644 --- a/ch03/ex3-5.md +++ b/ch03/ex3-5.md @@ -24,14 +24,13 @@ void main() { ``` -# Example: List assignment +# Example: Values.byName ```dart enum Day { sun, mon, tues } void main() { - List daysOfWeek = Day.values; - print('${daysOfWeek[0]}'); + print(Day.values.byName('mon')); } ```