Skip to content

Commit d299b77

Browse files
authored
[forward] Fix typo in example 2 in paragraph 6 (#4858)
Duplicate declaration of sp1. Change it to sp2 just as that in example 1 above.
1 parent 2aab403 commit d299b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/utilities.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
void g() {
363363
A a;
364364
shared_ptr<A> sp1 = factory<A>(a); // ``\tcode{a}\!'' binds to \tcode{A(const A\&)}
365-
shared_ptr<A> sp1 = factory<A>(std::move(a)); // ``\tcode{a}\!'' binds to \tcode{A(A\&\&)}
365+
shared_ptr<A> sp2 = factory<A>(std::move(a)); // ``\tcode{a}\!'' binds to \tcode{A(A\&\&)}
366366
}
367367
\end{codeblock}
368368
In the first call to \tcode{factory},

0 commit comments

Comments
 (0)