Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Jul 17, 2024
1 parent 2e58752 commit e7bef94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/RcppSimdJson/deserialize/scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ get_scalar_<double, rcpp_T::chr>(simdjson::dom::element element) noexcept(noxcpt
// This code effectively makes sure that we never end with more than one zero.
// E.g., 1.2000 becomes 1.20, but 1.000333333 remains 1.000333333.
// The problem of course, is that if you have 1.000333333, then you will
// do out.erase(10, std::string::npos) on a string of length 11.
// do out.erase(10+2, std::string::npos) on a string of length 11.
// Per the C++ specification, you should get std::out_of_range if index > size().
//
// We need to be more careful.
Expand Down

0 comments on commit e7bef94

Please sign in to comment.