Skip to content

Commit 37dd0d3

Browse files
committed
Fix editorial nits found by Daniel Krugler.
1 parent 4a81e1f commit 37dd0d3

7 files changed

+12
-11
lines changed

Diff for: algorithms.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>Search</h1>
3434
ForwardIterator search(ForwardIterator first, ForwardIterator last,
3535
const Searcher&amp; searcher);</cxx-signature>
3636

37-
<cxx-effects>Equivalent to <code>return searcher(first, last)</code>.</cxx-effects>
37+
<cxx-effects>Equivalent to <code>return searcher(first, last);</code></cxx-effects>
3838
<cxx-remarks><code>Searcher</code> need not meet the <code>CopyConstructible</code> requirements.</cxx-remarks>
3939
</cxx-function>
4040
</cxx-section>

Diff for: general.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ <h1>Feature-testing recommendations (Informative)</h1>
257257
</tr>
258258
<tr>
259259
<td>N3916</td>
260-
<td>Type-erased allocator for std::function</td>
260+
<td>Type-erased allocator for <code>std::function</code></td>
261261
<td><cxx-ref to="func.wrap.func"></cxx-ref></td>
262262
<td><code>function_erased_allocator</code></td>
263263
<td>201406</td>
@@ -313,15 +313,15 @@ <h1>Feature-testing recommendations (Informative)</h1>
313313
</tr>
314314
<tr>
315315
<td>N3916</td>
316-
<td>Type-erased allocator for std::promise</td>
316+
<td>Type-erased allocator for <code>std::promise</code></td>
317317
<td><cxx-ref to="futures.promise"></cxx-ref></td>
318318
<td><code>promise_erased_allocator</code></td>
319319
<td>201406</td>
320320
<td><code>&lt;experimental/future></code></td>
321321
</tr>
322322
<tr>
323323
<td>N3916</td>
324-
<td>Type-erased allocator for std::packaged_task</td>
324+
<td>Type-erased allocator for <code>std::packaged_task</code></td>
325325
<td><cxx-ref to="futures.task"></cxx-ref></td>
326326
<td><code>packaged_task_erased_allocator</code></td>
327327
<td>201406</td>

Diff for: memory.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ <h1><code>polymorphic_allocator</code> member functions</h1>
902902
<cxx-effects>Construct a <code>T</code> object at <code>p</code> by <cxx-term>uses-allocator construction</cxx-term>
903903
with allocator <code>this->resource()</code> (<cxx-ref to="mods.allocator.uses"></cxx-ref>)
904904
and constructor arguments <code>std::forward&lt;Args>(args)...</code>.</cxx-effects>
905-
<cxx-throws>: Nothing unless the constructor for <code>T</code> throws.</cxx-throws>
905+
<cxx-throws>Nothing unless the constructor for <code>T</code> throws.</cxx-throws>
906906
</cxx-function>
907907

908908
<cxx-function>
@@ -926,7 +926,8 @@ <h1><code>polymorphic_allocator</code> member functions</h1>
926926
then <code>xprime</code> is <code>tuple_cat(std::move(x), make_tuple(this->resource()))</code>.</li>
927927
<li>Otherwise the program is ill formed.</li>
928928
</ul>
929-
and let yprime be a tuple constructed from y according to the appropriate rule from the following list:
929+
and let <code>yprime</code> be a tuple constructed from <code>y</code>
930+
according to the appropriate rule from the following list:
930931
<ul>
931932
<li>If <code>uses_allocator_v&lt;T2,memory_resource*></code> is <code>false</code> and
932933
<code>is_constructible_v&lt;T,Args2...></code> is <code>true</code>, then <code>yprime</code> is <code>y</code>.</li>

Diff for: mods.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>Uses-allocator construction</h1>
2222
<cxx-function>
2323
<cxx-signature>template &lt;class T, class Alloc> struct uses_allocator;</cxx-signature>
2424
<cxx-remarks>
25-
automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
25+
Automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
2626
Meets the BinaryTypeTrait requirements (<cxx-ref in="cxx" to="meta.rqmts"></cxx-ref>).
2727
The implementation shall provide a definition that is derived from <code>true_type</code> if a type <code>T::allocator_type</code> exists
2828
and <ins>either</ins> <code>is_convertible_v&lt;Alloc, T::allocator_type> != false</code>

Diff for: optional.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,15 @@ <h1>Observers</h1>
469469
<cxx-function>
470470
<cxx-signature>template &lt;class U&gt; constexpr T value_or(U&amp;&amp; <var>v</var>) const &amp;;</cxx-signature>
471471

472-
<cxx-effects>Equivalent to <code>return bool(*this) ? **this : static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>))</code>.</cxx-effects>
472+
<cxx-effects>Equivalent to <code>return bool(*this) ? **this : static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>));</code></cxx-effects>
473473
<cxx-remarks>If <code>is_copy_constructible_v&lt;T&gt; &amp;&amp; <w-br></w-br>is_convertible_v&lt;U&amp;&amp;, T&gt;</code> is <code>false</code>,
474474
the program is ill-formed.</cxx-remarks>
475475
</cxx-function>
476476

477477
<cxx-function>
478478
<cxx-signature>template &lt;class U&gt; T value_or(U&amp;&amp; <var>v</var>) &amp;&amp;;</cxx-signature>
479479

480-
<cxx-effects>Equivalent to <code>return bool(*this) ? <w-br></w-br>std::move(**this) : <w-br></w-br>static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>))</code>.</cxx-effects>
480+
<cxx-effects>Equivalent to <code>return bool(*this) ? <w-br></w-br>std::move(**this) : <w-br></w-br>static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>));</code></cxx-effects>
481481
<cxx-remarks>If <code>is_move_constructible_v&lt;T&gt; &amp;&amp; <w-br></w-br>is_convertible_v&lt;U&amp;&amp;, T&gt;</code> is <code>false</code>,
482482
the program is ill-formed.</cxx-remarks>
483483
</cxx-function>

Diff for: string.view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ <h1><code>basic_string_view</code> constructors and assignment operators</h1>
218218
<cxx-effects>Constructs a <code>basic_string_view</code>, with the postconditions
219219
in <cxx-ref to="tab:string.view.ctr.2"></cxx-ref>.</cxx-effects>
220220

221-
<table is="cxx-table" id="tab:string.view.ctr.2"><caption><code>basic_string_view(const charT*)<code> effects</caption>
221+
<table is="cxx-table" id="tab:string.view.ctr.2"><caption><code>basic_string_view(const charT*)</code> effects</caption>
222222
<tr><th>Element</th><th>Value</th></tr>
223223
<tr><td><code>data_</code></td><td><code>str</code></td></tr>
224224
<tr><td><code>size_</code></td><td><code>traits::length(str)</code></td></tr>

Diff for: utilities.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ <h1>Other type transformations</h1>
313313
<li>The invocation parameters of <code><em>INVOKE</em>(S(), "abc", 5)</code> are <code>(const char *, int)</code>.
314314
The defaulted parameter <code>j</code> does not correspond to an argument.</li>
315315
<li>The invocation parameters of <code><em>INVOKE</em>(S(), locale(), 5)</code> are <code>(locale, int)</code>.
316-
Arguments corresponding to ellipsis maintain their types</li>
316+
Arguments corresponding to ellipsis maintain their types.</li>
317317
</ul>
318318
</cxx-example>
319319

0 commit comments

Comments
 (0)