Skip to content

Commit

Permalink
Correct mistake in prior art section
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Aug 31, 2022
1 parent 4b9417f commit 81232f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/3305-static-in-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void main()

C's `switch` statement does not allow referring to C `const`s.

C++'s `switch` statement allows arbitrary expressions.
C++'s `switch` statement allows arbitrary constant expressions, but does not allow referring to C++ `extern const`s (only C++-defined `const`s).

Scala allows matching on arbitrary expressions via special syntax (backticks).

Expand Down

0 comments on commit 81232f7

Please sign in to comment.