From 34475db2b33cc77f6a655d770bce6abdd049aac3 Mon Sep 17 00:00:00 2001 From: growfrow Date: Thu, 18 Apr 2024 16:54:52 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: growfrow --- src/3rdparty/libethash/ethash.h | 2 +- src/3rdparty/libethash/ethash_internal.h | 2 +- src/3rdparty/rapidjson/document.h | 4 ++-- src/3rdparty/rapidjson/reader.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/3rdparty/libethash/ethash.h b/src/3rdparty/libethash/ethash.h index c65cb7c66..05b8d640a 100644 --- a/src/3rdparty/libethash/ethash.h +++ b/src/3rdparty/libethash/ethash.h @@ -50,7 +50,7 @@ typedef struct ethash_h256 { uint8_t b[32]; } ethash_h256_t; // usage: // ethash_h256_t a = ethash_h256_static_init(1, 2, 3, ... ) // have to provide all 32 values. If you don't provide all the rest -// will simply be unitialized (not guranteed to be 0) +// will simply be unitialized (not guaranteed to be 0) #define ethash_h256_static_init(...) \ { {__VA_ARGS__} } diff --git a/src/3rdparty/libethash/ethash_internal.h b/src/3rdparty/libethash/ethash_internal.h index a1f2df213..ce0a78e12 100644 --- a/src/3rdparty/libethash/ethash_internal.h +++ b/src/3rdparty/libethash/ethash_internal.h @@ -68,7 +68,7 @@ static inline bool ethash_check_difficulty( * @param nonce The block's nonce * @param mix_hash The mix digest hash * @param boundary The boundary is defined as (2^256 / difficulty) - * @return true for succesful pre-verification and false otherwise + * @return true for successful pre-verification and false otherwise */ bool ethash_quick_check_difficulty( ethash_h256_t const* header_hash, diff --git a/src/3rdparty/rapidjson/document.h b/src/3rdparty/rapidjson/document.h index 660e14eb5..efab3fdb6 100644 --- a/src/3rdparty/rapidjson/document.h +++ b/src/3rdparty/rapidjson/document.h @@ -1805,7 +1805,7 @@ public: uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; } //! Get the value as double type. - /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the converison is lossless. + /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the conversion is lossless. */ double GetDouble() const { RAPIDJSON_ASSERT(IsNumber()); @@ -1817,7 +1817,7 @@ public: } //! Get the value as float type. - /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the converison is lossless. + /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the conversion is lossless. */ float GetFloat() const { return static_cast(GetDouble()); diff --git a/src/3rdparty/rapidjson/reader.h b/src/3rdparty/rapidjson/reader.h index 542b7c00c..f8499a8c9 100644 --- a/src/3rdparty/rapidjson/reader.h +++ b/src/3rdparty/rapidjson/reader.h @@ -1002,7 +1002,7 @@ private: //!@endcond for (;;) { - // Scan and copy string before "\\\"" or < 0x20. This is an optional optimzation. + // Scan and copy string before "\\\"" or < 0x20. This is an optional optimization. if (!(parseFlags & kParseValidateEncodingFlag)) ScanCopyUnescapedString(is, os);