summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Markus Dreseler <markus@dreseler.de>2021-09-22 21:58:42 +0200
committerGravatar GitHub <noreply@github.com>2021-09-22 15:58:42 -0400
commitd4af654d971cc46cde6213269a364cdf170fe0ce (patch)
tree2f7f33e35f591d3a1f5d3d8642257414211c1f50
parent29f8307d8e629e989bf26a84ab1a49a0738a5470 (diff)
Update from_chars documentation with regard to whitespace (#1020)
-rw-r--r--absl/strings/charconv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/strings/charconv.h b/absl/strings/charconv.h
index e04be32f..7c509812 100644
--- a/absl/strings/charconv.h
+++ b/absl/strings/charconv.h
@@ -64,8 +64,9 @@ struct from_chars_result {
// the result in `value`.
//
// The matching pattern format is almost the same as that of strtod(), except
-// that C locale is not respected, and an initial '+' character in the input
-// range will never be matched.
+// that (1) C locale is not respected, (2) an initial '+' character in the
+// input range will never be matched, and (3) leading whitespaces are not
+// ignored.
//
// If `fmt` is set, it must be one of the enumerator values of the chars_format.
// (This is despite the fact that chars_format is a bitmask type.) If set to