Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #3464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/3rdparty/libethash/ethash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__} }

Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty/libethash/ethash_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/3rdparty/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ class GenericValue {
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());
Expand All @@ -1817,7 +1817,7 @@ class GenericValue {
}

//! 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<float>(GetDouble());
Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ class GenericReader {
//!@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);

Expand Down