Skip to content

Commit 696a088

Browse files
Refactor comment for clarity in user-input.md (#12678)
There is a confusing block of text in the code example. If one were to run the code as is, it will fail.
1 parent 5f96344 commit 696a088

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/content/get-started/fundamentals/user-input.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,8 @@ Widget build(BuildContext context) {
434434
selected: <Calendar>{calendarView},
435435
onSelectionChanged: (Set<Calendar> newSelection) {
436436
setState(() {
437-
Suggested change
438-
// By default there is only a single segment that can be
439-
// selected at one time, so its value is always the first
440-
// By default, only a single segment can be
441-
// selected at one time, so its value is always the first
437+
// By default, there is only a single segment that can be
438+
// selected at a time, so its value is always the first
442439
calendarView = newSelection.first;
443440
});
444441
},

0 commit comments

Comments
 (0)