Skip to content

Commit a88d02d

Browse files
Eeliszygoloid
authored andcommitted
[temp.mem.func] Remove inappropriate parentheses in 'Array<T>::operator[]()'.
1 parent a3ab84c commit a88d02d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/templates.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@
22202220
The
22212221
\grammarterm{template-argument}
22222222
for
2223-
\tcode{Array<T>::operator[]()}
2223+
\tcode{Array<T>::operator[]}
22242224
will be determined by the
22252225
\tcode{Array}
22262226
to which the subscripting operation is applied.
@@ -2229,8 +2229,8 @@
22292229
Array<int> v1(20);
22302230
Array<dcomplex> v2(30);
22312231

2232-
v1[3] = 7; // \tcode{Array<int>::operator[]()}
2233-
v2[3] = dcomplex(7,8); // \tcode{Array<dcomplex>::operator[]()}
2232+
v1[3] = 7; // \tcode{Array<int>::operator[]}
2233+
v2[3] = dcomplex(7,8); // \tcode{Array<dcomplex>::operator[]}
22342234
\end{codeblock}
22352235
\end{example}
22362236

0 commit comments

Comments
 (0)