Skip to content

Commit 8f153df

Browse files
committed
[basic, except, diff] Rewordings to avoid "might" and "could"
1 parent 4b9953f commit 8f153df

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

source/basic.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -2870,7 +2870,7 @@
28702870
or defines a constexpr variable initialized to a TU-local value (defined below).
28712871
\begin{note}
28722872
An inline function template can be an exposure even though
2873-
explicit specializations of it might be usable in other translation units.
2873+
certain explicit specializations of it would be usable in other translation units.
28742874
\end{note}
28752875

28762876
\pnum
@@ -2965,7 +2965,7 @@
29652965
}
29662966
void adl(double);
29672967

2968-
inline void h(auto x) { adl(x); } // OK, but a specialization might be an exposure
2968+
inline void h(auto x) { adl(x); } // OK, but certain specializations are exposures
29692969
\end{codeblocktu}
29702970
\begin{codeblocktu}{Translation unit \#2}
29712971
module A;

source/compatibility.tex

+17-19
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,11 @@
631631
Improve consistency of equality with three-way comparison
632632
and make it easier to write the full complement of equality operations.
633633
\effect
634-
Equality and inequality expressions between two objects of different types,
635-
where one is convertible to the other,
636-
could invoke a different operator.
637-
Equality and inequality expressions between two objects of the same type
638-
could become ambiguous.
634+
For certain pairs of types where one is convertible to the other,
635+
equality or inequality expressions between an object of one type
636+
and an object of the other type invoke a different operator.
637+
Also, for certain types, equality or inequality expressions
638+
between two objects of that type become ambiguous.
639639
For example:
640640
\begin{codeblock}
641641
struct A {
@@ -921,9 +921,9 @@
921921
\change
922922
Remove \tcode{raw_storage_iterator}.
923923
\rationale
924-
The iterator encouraged use of algorithms that might throw exceptions, but did
925-
not return the number of elements successfully constructed that might need to
926-
be destroyed in order to avoid leaks.
924+
The iterator encouraged use of potentially-throwing algorithms, but did
925+
not return the number of elements successfully constructed,
926+
as would be necessary to destroy them.
927927
\effect
928928
A valid \CppXVII{} program that uses this iterator class may fail to compile.
929929

@@ -958,8 +958,8 @@
958958
The traits had unreliable or awkward interfaces. The \tcode{is_literal_type}
959959
trait provided no way to detect which subset of constructors and member
960960
functions of a type were declared \keyword{constexpr}. The \tcode{result_of}
961-
trait had a surprising syntax that could not report the result of a regular
962-
function type. It has been superseded by the \tcode{invoke_result} trait.
961+
trait had a surprising syntax that did not directly support function types.
962+
It has been superseded by the \tcode{invoke_result} trait.
963963
\effect
964964
A valid \CppXVII{} program that relies on the \tcode{is_literal_type} or
965965
\tcode{result_of} type traits, on the \tcode{is_literal_type_v} variable template,
@@ -1019,8 +1019,6 @@
10191019
\effect
10201020
A valid \CppXIV{} expression utilizing the increment operator on
10211021
a \tcode{bool} lvalue is ill-formed in this revision of \Cpp{}.
1022-
Note that this might occur when the lvalue has a type given by a template
1023-
parameter.
10241022

10251023
\diffref{expr.new,expr.delete}
10261024
\change
@@ -1694,7 +1692,7 @@
16941692
\rationale
16951693
Overly constrained, simplify overload resolution rules.
16961694
\effect
1697-
A valid \CppIII{} program could get a different result than in this
1695+
A valid \CppIII{} program can get a different result in this
16981696
revision of \Cpp{}.
16991697

17001698
\rSec2[diff.cpp03.library]{\ref{library}: library introduction}
@@ -2354,8 +2352,8 @@
23542352
block.
23552353
Allowing jump past initializers would require
23562354
complicated runtime determination of allocation.
2357-
Furthermore, any use of the uninitialized object could be a
2358-
disaster.
2355+
Furthermore, many operations on such an uninitialized object
2356+
have undefined behavior.
23592357
With this simple compile-time rule, \Cpp{} assures that
23602358
if an initialized variable is in scope, then it has assuredly been
23612359
initialized.
@@ -2411,8 +2409,8 @@
24112409
with a type.
24122410
In \Cpp{}, class members can be declared with the \keyword{static} storage
24132411
class specifier.
2414-
Allowing storage class specifiers on type
2415-
declarations could render the code confusing for users.
2412+
Storage class specifiers on type
2413+
declarations can be confusing for users.
24162414
\effect
24172415
Deletion of semantically well-defined feature.
24182416
\difficulty
@@ -2786,8 +2784,8 @@
27862784
\indextext{bit-field!implementation-defined sign of}%
27872785
Bit-fields of type plain \keyword{int} are signed.
27882786
\rationale
2789-
Leaving the choice of signedness to implementations could lead to
2790-
inconsistent definitions of template specializations. For consistency,
2787+
The signedness needs to be consistent among template specializations.
2788+
For consistency,
27912789
the implementation freedom was eliminated for non-dependent types,
27922790
too.
27932791
\effect

source/exceptions.tex

+1-3
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,7 @@
799799
\end{codeblock}
800800
The call to
801801
\tcode{f}
802-
is well-formed even though, when called,
803-
\tcode{f}
804-
might throw an exception.
802+
is well-formed despite the possibility for it to throw an exception.
805803
\end{example}
806804

807805
\pnum

0 commit comments

Comments
 (0)