From 3fddb895081368748545be14901941220c81f60d Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Tue, 30 Aug 2022 22:55:34 +0200 Subject: [PATCH] Fix some typos --- README.md | 2 +- include/fast_float/fast_float.h | 2 +- tests/basictest.cpp | 2 +- tests/exhaustive32_midpoint.cpp | 2 +- tests/string_test.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5e6cd91..7a2ded5 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ You can parse delimited numbers: ## Reference -- Daniel Lemire, [Number Parsing at a Gigabyte per Second](https://arxiv.org/abs/2101.11408), Software: Pratice and Experience 51 (8), 2021. +- Daniel Lemire, [Number Parsing at a Gigabyte per Second](https://arxiv.org/abs/2101.11408), Software: Practice and Experience 51 (8), 2021. ## Other programming languages diff --git a/include/fast_float/fast_float.h b/include/fast_float/fast_float.h index 3c48380..ad3093e 100644 --- a/include/fast_float/fast_float.h +++ b/include/fast_float/fast_float.h @@ -44,7 +44,7 @@ struct parse_options { * Like the C++17 standard, the `fast_float::from_chars` functions take an optional last argument of * the type `fast_float::chars_format`. It is a bitset value: we check whether * `fmt & fast_float::chars_format::fixed` and `fmt & fast_float::chars_format::scientific` are set - * to determine whether we allowe the fixed point and scientific notation respectively. + * to determine whether we allow the fixed point and scientific notation respectively. * The default is `fast_float::chars_format::general` which allows both `fixed` and `scientific`. */ template diff --git a/tests/basictest.cpp b/tests/basictest.cpp index d422aeb..cef34db 100644 --- a/tests/basictest.cpp +++ b/tests/basictest.cpp @@ -50,7 +50,7 @@ #include #include -// return true on succcess +// return true on success bool check_file(std::string file_name) { std::cout << "Checking " << file_name << std::endl; size_t number{0}; diff --git a/tests/exhaustive32_midpoint.cpp b/tests/exhaustive32_midpoint.cpp index f64f4e4..fdfd25d 100644 --- a/tests/exhaustive32_midpoint.cpp +++ b/tests/exhaustive32_midpoint.cpp @@ -132,7 +132,7 @@ bool allvalues() { inline void Assert(bool Assertion) { #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(sun) || defined(__sun) - if (!Assertion) { std::cerr << "Omitting hard falure on msys/cygwin/sun systems."; } + if (!Assertion) { std::cerr << "Omitting hard failure on msys/cygwin/sun systems."; } #else if (!Assertion) { throw std::runtime_error("bug"); } #endif diff --git a/tests/string_test.cpp b/tests/string_test.cpp index 05871db..78da51e 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -44,8 +44,8 @@ float cygwin_strtof_l(const char* start, char** end) { inline void Assert(bool Assertion) { #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(sun) || defined(__sun) - if (!Assertion) { std::cerr << "Omitting hard falure on msys/cygwin/sun systems."; } -#else + if (!Assertion) { std::cerr << "Omitting hard failure on msys/cygwin/sun systems."; } +#else if (!Assertion) { throw std::runtime_error("bug"); } #endif }