chore: fix some typos in comments

Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
growfrow 2024-04-18 16:54:52 +08:00
parent 4ab9329dda
commit 34475db2b3
4 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ typedef struct ethash_h256 { uint8_t b[32]; } ethash_h256_t;
// usage: // usage:
// ethash_h256_t a = ethash_h256_static_init(1, 2, 3, ... ) // 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 // 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(...) \ #define ethash_h256_static_init(...) \
{ {__VA_ARGS__} } { {__VA_ARGS__} }

View file

@ -68,7 +68,7 @@ static inline bool ethash_check_difficulty(
* @param nonce The block's nonce * @param nonce The block's nonce
* @param mix_hash The mix digest hash * @param mix_hash The mix digest hash
* @param boundary The boundary is defined as (2^256 / difficulty) * @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( bool ethash_quick_check_difficulty(
ethash_h256_t const* header_hash, ethash_h256_t const* header_hash,

View file

@ -1805,7 +1805,7 @@ public:
uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; } uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; }
//! Get the value as double type. //! 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 { double GetDouble() const {
RAPIDJSON_ASSERT(IsNumber()); RAPIDJSON_ASSERT(IsNumber());
@ -1817,7 +1817,7 @@ public:
} }
//! Get the value as float type. //! 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 { float GetFloat() const {
return static_cast<float>(GetDouble()); return static_cast<float>(GetDouble());

View file

@ -1002,7 +1002,7 @@ private:
//!@endcond //!@endcond
for (;;) { 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)) if (!(parseFlags & kParseValidateEncodingFlag))
ScanCopyUnescapedString(is, os); ScanCopyUnescapedString(is, os);