Skip to content

Commit 9503179

Browse files
Fix formatting and missing varibale
1 parent 1a534fb commit 9503179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

talk/morelanguage/stl.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
T& t = v[1000]; // access element 1000, bug!
8787
T& t = v.at(1000); // throws std::out_of_range
8888
T& f = v.front(); // access first element
89-
v.back() = 0; // write to last element
90-
T* v.data(); // pointer to underlying storage
89+
v.back() = 0; // write to last element
90+
T* p = v.data(); // pointer to underlying storage
9191
\end{cppcode*}
9292
\end{frame}
9393

0 commit comments

Comments
 (0)