Skip to content

Commit 82073b7

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
better wording
1 parent f4ee5c6 commit 82073b7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎docs/standard-library/charconv-functions.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ The \<charconv> header includes the following non-member functions:
1010

1111
| **Non-member functions** | **Description** |
1212
|-|-|
13-
|[to_chars](#to_chars) | Convert an integer or floating point type to a sequence of `char`. |
14-
|[from_chars](#from_chars) | Convert a sequence of `char` to an integer or floating point type. |
13+
|[to_chars](#to_chars) | Convert an integer or floating point value to a sequence of `char`. |
14+
|[from_chars](#from_chars) | Convert a sequence of `char` to an integer or floating point value. |
1515

1616
## `to_chars`
1717

18-
Convert an integer or floating point type value to a sequence of `char`.
18+
Convert an integer or floating point value to a sequence of `char`.
1919

2020
Converts `value` into a character string by filling the range \[first, last), where \[first, last) must be a valid range.
2121
If the conversion is successful, as indicated by `to_char_result.ec`, the member ptr is the one-past-the-end pointer of the characters written. Otherwise, `to_char_result.ec` has the value `errc::value_too_large`, `to_char_result.ptr` has the value `last`, and the contents of the range
@@ -125,10 +125,10 @@ int main()
125125

126126
## `from_chars`
127127

128-
Convert a sequence of `char` to an integer or floating point type.
128+
Convert a sequence of `char` to an integer or floating point value.
129129

130130
```cpp
131-
// char to an integer type
131+
// char to an integer value
132132

133133
inline from_chars_result from_chars(const char* const first, const char* const last, char& value, const int base = 10)
134134
inline from_chars_result from_chars(const char* const first, const char* const last, signed char& value,const int base = 10)
@@ -142,7 +142,7 @@ inline from_chars_result from_chars(const char* const first, const char* const l
142142
inline from_chars_result from_chars(const char* const first, const char* const last, long long& value,const int base = 10)
143143
inline from_chars_result from_chars(const char* const first, const char* const last, unsigned long long& value, const int base = 10)
144144

145-
// char to a floating point type
145+
// char to a floating point value
146146

147147
inline from_chars_result from_chars(const char* const first, const char* const last, float& value,const chars_format fmt = chars_format::general)
148148
inline from_chars_result from_chars(const char* const first, const char* const last, double& value,const chars_format fmt = chars_format::general)

0 commit comments

Comments
 (0)