book: Use the expected syntax in the select1 example.
Question: Why did this example work before?
Merge request reports
Activity
requested review from @Diziet
assigned to @nickm
Question: Why did this example work before?
As per the reference:
The
else if
between arms is also optional, butelse
in the fallback clause is mandatory.Personally I often prefer to omit them, but I have no objection if you'd like to include them here in the book. So please decide what you prefer and then merge or close this.
mentioned in commit d75de79d
Please register or sign in to reply