summaryrefslogtreecommitdiffstats
path: root/mfbt
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-23 14:52:16 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-23 14:52:16 +0000
commit7572f371867ac8fd61963aced41382357d0e28f8 (patch)
treec1685be6dd885ac1d903dbf21f68c2cf8ba252ad /mfbt
parenta680bdc637e0393aaa08d575c66f7166b788b443 (diff)
downloadUXP-7572f371867ac8fd61963aced41382357d0e28f8.tar
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.gz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.lz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.tar.xz
UXP-7572f371867ac8fd61963aced41382357d0e28f8.zip
Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.
The poor fellows got lost in an ASCII-interpretation of the world.
Diffstat (limited to 'mfbt')
-rw-r--r--mfbt/FastBernoulliTrial.h6
-rw-r--r--mfbt/tests/TestTypeTraits.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/mfbt/FastBernoulliTrial.h b/mfbt/FastBernoulliTrial.h
index 7618a552a..c549bca67 100644
--- a/mfbt/FastBernoulliTrial.h
+++ b/mfbt/FastBernoulliTrial.h
@@ -250,7 +250,7 @@ class FastBernoulliTrial {
* - The gaps below 1 are 2**-53, so that interval is (0, 1-2**-53].
*
* - Because the floating-point gaps near 1 are wider than those near
- * zero, there are many small positive doubles ?? such that 1-?? rounds to
+ * zero, there are many small positive doubles ε such that 1-ε rounds to
* exactly 1. However, 2**-53 can be represented exactly. So
* 1-mProbability is in [2**-53, 1].
*
@@ -263,9 +263,9 @@ class FastBernoulliTrial {
*
* - How much of the range of mProbability does this cause us to ignore?
* The only value for which log returns 0 is exactly 1; the slope of log
- * at 1 is 1, so for small ?? such that 1 - ?? != 1, log(1 - ??) is -??,
+ * at 1 is 1, so for small ε such that 1 - ε != 1, log(1 - ε) is -ε,
* never 0. The gaps near one are larger than the gaps near zero, so if
- * 1 - ?? wasn't 1, then -?? is representable. So if log(1 - mProbability)
+ * 1 - ε wasn't 1, then -ε is representable. So if log(1 - mProbability)
* isn't 0, then 1 - mProbability isn't 1, which means that mProbability
* is at least 2**-53, as discussed earlier. This is a sampling
* likelihood of roughly one in ten trillion, which is unlikely to be
diff --git a/mfbt/tests/TestTypeTraits.cpp b/mfbt/tests/TestTypeTraits.cpp
index e51831e50..93f9b3d0f 100644
--- a/mfbt/tests/TestTypeTraits.cpp
+++ b/mfbt/tests/TestTypeTraits.cpp
@@ -375,7 +375,7 @@ static_assert(IsDestructible<TrivialDestructible>::value,
namespace CPlusPlus11IsBaseOf {
-// Adapted from C++11 ?? 20.9.6.
+// Adapted from C++11 § 20.9.6.
struct B {};
struct B1 : B {};
struct B2 : B {};