summaryrefslogtreecommitdiff
path: root/absl/strings/charconv.cc
diff options
context:
space:
mode:
authorGravatar Copybara-Service <copybara-worker@google.com>2023-04-25 13:58:06 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-04-25 13:58:06 -0700
commit8518869eb9a8ef098a9dd7780b9e55d5b43b5873 (patch)
treed102fdc769f74ec29208285ab3f509230eaa50e4 /absl/strings/charconv.cc
parent4ffaea74c1f5408e0757547a1ca0518ad43fa9f1 (diff)
parent421a74dce4c6f768bfcca94ba62b65ded1d50f7c (diff)
Merge pull request #1434 from Vertexwahn:fix-spelling
PiperOrigin-RevId: 527066823 Change-Id: Ifa1e9a43c7490b34f9f4dbfa12d3acbed6b49777
Diffstat (limited to 'absl/strings/charconv.cc')
-rw-r--r--absl/strings/charconv.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/strings/charconv.cc b/absl/strings/charconv.cc
index 69d420bc..c510aea4 100644
--- a/absl/strings/charconv.cc
+++ b/absl/strings/charconv.cc
@@ -203,7 +203,8 @@ struct FloatTraits<float> {
if (mantissa > kMantissaMask) {
// Normal value.
// Adjust by 127 for the exponent representation bias, and an additional
- // 23 due to the implied decimal point in the IEEE mantissa represenation.
+ // 23 due to the implied decimal point in the IEEE mantissa
+ // representation.
flt += static_cast<uint32_t>(exponent + 127 + kTargetMantissaBits - 1)
<< 23;
mantissa &= kMantissaMask;
@@ -462,7 +463,7 @@ uint64_t ShiftRightAndRound(uint128 value, int shift, bool input_exact,
// the low bit of `value` is set.
//
// In inexact mode, the nonzero error means the actual value is greater
- // than the halfway point and we must alway round up.
+ // than the halfway point and we must always round up.
if ((value & 1) == 1 || !input_exact) {
++value;
}