Skip to content

Commit e90b94b

Browse files
committed
Fixup (core): missing \tcodes in comments
1 parent 9e9197b commit e90b94b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/basic.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,10 +2857,10 @@
28572857
static_assert(alias::s == 2);
28582858

28592859
auto o1 = [:^^TCls:]<([:^^v:])>(); // error: < means less than
2860-
auto o2 = typename [:^^TCls:]<([:^^v:])>(); // OK, o2 is an object of type TCls<1>
2860+
auto o2 = typename [:^^TCls:]<([:^^v:])>(); // OK, \tcode{o2} is an object of type \tcode{TCls<1>}
28612861

28622862
consteval int bad_splice(std::meta::info v) {
2863-
return [:v:]; // error: v is not constant
2863+
return [:v:]; // error: \tcode{v} is not constant
28642864
}
28652865
\end{codeblock}
28662866
\end{example}
@@ -5630,8 +5630,8 @@
56305630

56315631
constexpr auto ctx = std::meta::access_context::current();
56325632

5633-
constexpr auto r1 = std::meta::reflect_constant(42); // represents int value of 42
5634-
constexpr auto r2 = std::meta::reflect_object(arr[1]); // represents int object
5633+
constexpr auto r1 = std::meta::reflect_constant(42); // represents \tcode{int} value of \tcode{42}
5634+
constexpr auto r2 = std::meta::reflect_object(arr[1]); // represents \tcode{int} object
56355635
constexpr auto r3 = ^^arr; // represents a variable
56365636
constexpr auto r4 = ^^a3; // represents a structured binding
56375637
constexpr auto r5 = ^^fn; // represents a function

0 commit comments

Comments
 (0)