Skip to content

Commit 7c0ca3d

Browse files
Correct mistake in prior art section
1 parent 4b9417f commit 7c0ca3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3305-static-in-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void main()
348348

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

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

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

0 commit comments

Comments
 (0)