Skip to content

Commit 4d0c7e2

Browse files
authored
Merge pull request #1117 from akrzemi1/patch-2
Fix typos in charconv docs
2 parents 2fe4b4d + 5940912 commit 4d0c7e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/modules/ROOT/pages/charconv.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ namespace decimal {
4141
struct from_chars_result
4242
{
4343
const char* ptr;
44-
std::errc ptr;
44+
std::errc ec;
4545
46-
friend constexpr auto operator==(const from_chars_result& lhs, const from_chars_result& rhs) noexcept = default;
46+
friend constexpr bool operator==(const from_chars_result& lhs, const from_chars_result& rhs) noexcept = default;
4747
4848
constexpr explicit operator bool() const noexcept { return ec == std::errc{}; }
4949
}
@@ -62,9 +62,9 @@ namespace decimal {
6262
struct to_chars_result
6363
{
6464
char* ptr;
65-
std::errc ptr;
65+
std::errc ec;
6666
67-
friend constexpr auto operator==(const to_chars_result& lhs, const to_chars_result& rhs) noexcept = default;
67+
friend constexpr bool operator==(const to_chars_result& lhs, const to_chars_result& rhs) noexcept = default;
6868
6969
constexpr explicit operator bool() const noexcept { return ec == std::errc{}; }
7070
}

0 commit comments

Comments
 (0)