From 4c27ea721021de01a8fdba78f7015b410b44d8af Mon Sep 17 00:00:00 2001 From: Dawn Rose <63545980+tastethedream@users.noreply.github.com> Date: Mon, 5 Dec 2022 16:12:47 +0000 Subject: [PATCH] Update ex3-5.md Example three changed to reflect QC2 section 2.5 --- ch03/ex3-5.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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')); } ```