Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
devbww committed Apr 26, 2024
1 parent 89e6858 commit c749a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/spanner/interval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Interval& Interval::operator+=(Interval const& intvl) {
Interval& Interval::operator*=(double d) {
// Fractional results only flow down into smaller units. Nothing ever
// carries up into larger units. This means that '1 month' / 2 becomes
// '15 days, but '1 month 15 days' * 3 is '3 months 45 days'.
// '15 days', but '1 month 15 days' * 3 is '3 months 45 days'.
double i_months;
double f_months = std::modf(months_ * d, &i_months);
months_ = static_cast<std::int32_t>(i_months);
Expand Down

0 comments on commit c749a3b

Please sign in to comment.