Skip to content

Commit 9257d97

Browse files
Update CTAD description in hello-world.md (#984)
Signed-off-by: Neil Henderson <[email protected]>
1 parent 36475b6 commit 9257d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/welcome/hello-world.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All grammar is context-free. In particular, we (the human reading the code, and
3838

3939
<a id="CTAD"></a>
4040

41-
- Declaring `words` uses **"CTAD"** (C++'s normal [constructor template argument deduction](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction)) to declare its `words` variable.
41+
- Declaring `words` uses **"CTAD"** (C++'s normal [constructor template argument deduction](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction)) to deduce the type of elements in the `vector`.
4242

4343
- Calling `words[0]` and `words[1]` is **bounds-checked by default**. From Cpp2 code, ordinary `std::vector` subscript accesses are safely bounds-checked by default without requiring any upgrade to your favorite standard library, and that's true for any similar subscript of something whose size can be queried using `std::size()` and `std::ssize()`, and for which `std::begin()` returns a random access iterator, including any in-house integer-indexed container types you already have that can easily provide `std::size()` and `std::ssize()` if they don't already.
4444

0 commit comments

Comments
 (0)