Skip to content

Commit bc042d6

Browse files
authored
Update README.md
1 parent 56153ba commit bc042d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ It is also the approach taken by the [Microsoft C++ library](https://github.com/
162162
Hence, we have the following examples:
163163

164164
```cpp
165-
double result = -1;
166-
std::string str = "3e-1000";
167-
auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
165+
double result = -1;
166+
std::string str = "3e-1000";
167+
auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
168168
// r.ec == std::errc::result_out_of_range
169169
// r.ptr == str.data() + 7
170170
// result == 0
171171
```
172172

173173

174174
```cpp
175-
double result = -1;
176-
std::string str = "3e1000";
177-
auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
175+
double result = -1;
176+
std::string str = "3e1000";
177+
auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
178178
// r.ec == std::errc::result_out_of_range
179179
// r.ptr == str.data() + 6
180180
// result == std::numeric_limits<double>::infinity()

0 commit comments

Comments
 (0)