diff --git a/source/declarations.tex b/source/declarations.tex index aa28c9fcdd..f9ab44c5c8 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -7194,7 +7194,7 @@ \begin{codeblock} enum direction { left='l', right='r' }; -void g() { +void g() { direction d; // OK d = left; // OK d = direction::right; // OK @@ -7202,7 +7202,7 @@ enum class altitude { high='h', low='l' }; -void h() { +void h() { altitude a; // OK a = high; // error: \tcode{high} not in scope a = altitude::low; // OK