diff --git a/source/basic.tex b/source/basic.tex index c5ad9eb0bc..ed9b2febda 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -6163,7 +6163,7 @@ defined as follows: \begin{itemize} \item -The rank of a floating point type \tcode{T} is greater than +The rank of a floating-point type \tcode{T} is greater than the rank of any floating-point type whose set of values is a proper subset of the set of values of \tcode{T}. \item diff --git a/source/compatibility.tex b/source/compatibility.tex index a46c9a71cc..56cf900062 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -2674,7 +2674,7 @@ \diffref{facet.num.get.virtuals} \change -The \tcode{num_get} facet recognizes hexadecimal floating point values. +The \tcode{num_get} facet recognizes hexadecimal floating-point values. \rationale Required by new feature. \effect diff --git a/source/numerics.tex b/source/numerics.tex index c477fd3044..48dff55913 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -11902,7 +11902,7 @@ the \tcode{value_type} is a floating-point type, implementers are free to leverage approximations, use arithmetic operations not explicitly listed above, and -compute floating point sums in any way that improves their accuracy. +compute floating-point sums in any way that improves their accuracy. \end{note} \pnum diff --git a/tools/check-source.sh b/tools/check-source.sh index 0babcd2af8..d1a7a1359b 100755 --- a/tools/check-source.sh +++ b/tools/check-source.sh @@ -8,6 +8,7 @@ failed=0 texfiles=$(ls *.tex | grep -v macros.tex | grep -v layout.tex | grep -v tables.tex) texlibdesc="support.tex concepts.tex diagnostics.tex memory.tex meta.tex utilities.tex containers.tex iterators.tex ranges.tex algorithms.tex strings.tex text.tex numerics.tex time.tex iostreams.tex threads.tex exec.tex" texlib="lib-intro.tex $texlibdesc" +texnoback=$(ls *.tex | grep -v back.tex) # Filter that reformats the error message as a "workflow command", # for native handling by github actions. @@ -39,6 +40,10 @@ for f in *.tex; do echo "$f" | fail 'trailing empty lines' || failed=1 done +# "floating point" instead of "floating-point" +grep -in 'floating point' $texnoback | + fail '"floating point" should be hyphenated like "floating-point"' || failed=1 + # indented \begin{codeblock} / \end{codeblock} (causes unwanted empty space) grep -ne '^.\+\\\(begin\|end\){codeblock}' $texfiles | fail 'indented codeblock env' || failed=1