Skip to content

Commit ada3562

Browse files
Fix typos reported by codespell
1 parent 59ecacf commit ada3562

19 files changed

+30
-25
lines changed

contrib/debian/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Comment: Site: https://bitcointalk.org/?topic=1756.0
9696
Files: src/qt/res/icons/proxy.png
9797
src/qt/res/src/proxy.svg
9898
Copyright: Cristian Mircea Messel
99-
Licese: public-domain
99+
License: public-domain
100100

101101

102102
License: Expat

contrib/gitian-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def main():
170170

171171
args.sign_prog = 'true' if args.detach_sign else 'gpg --detach-sign'
172172

173-
# Set enviroment variable USE_LXC or USE_DOCKER, let gitian-builder know that we use lxc or docker
173+
# Set environment variable USE_LXC or USE_DOCKER, let gitian-builder know that we use lxc or docker
174174
if args.docker:
175175
os.environ['USE_DOCKER'] = '1'
176176
elif not args.kvm:

src/dbwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void SetMaxOpenFiles(leveldb::Options *options) {
7878
// do not interfere with select() loops. On 64-bit Unix hosts this value is
7979
// also OK, because up to that amount LevelDB will use an mmap
8080
// implementation that does not use extra file descriptors (the fds are
81-
// closed after being mmaped).
81+
// closed after being mmap'ed).
8282
//
8383
// Increasing the value beyond the default is dangerous because LevelDB will
8484
// fall back to a non-mmap implementation when the file count is too large.

src/qt/test/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Press "Ok" button in message box dialog.
66
*
77
* @param text - Optionally store dialog text.
8-
* @param msec - Number of miliseconds to pause before triggering the callback.
8+
* @param msec - Number of milliseconds to pause before triggering the callback.
99
*/
1010
void ConfirmMessage(QString* text = nullptr, int msec = 0);
1111

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ UniValue converttopsbt(const JSONRPCRequest& request)
17401740
" will continue. If false, RPC will fail if any signatures are present.\n"
17411741
"3. iswitness (boolean, optional) Whether the transaction hex is a serialized witness transaction.\n"
17421742
" If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserializaion\n"
1743-
" will be tried. If false, only non-witness deserialization wil be tried. Only has an effect if\n"
1743+
" will be tried. If false, only non-witness deserialization will be tried. Only has an effect if\n"
17441744
" permitsigdata is true.\n"
17451745
"\nResult:\n"
17461746
" \"psbt\" (string) The resulting raw transaction (base64-encoded string)\n"

src/scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class SingleThreadedSchedulerClient {
111111
/**
112112
* Add a callback to be executed. Callbacks are executed serially
113113
* and memory is release-acquire consistent between callback executions.
114-
* Practially, this means that callbacks can behave as if they are executed
114+
* Practically, this means that callbacks can behave as if they are executed
115115
* in order by a single thread.
116116
*/
117117
void AddToProcessQueue(std::function<void (void)> func);

src/script/descriptor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ enum class ParseScriptContext {
373373
P2WSH,
374374
};
375375

376-
/** Parse a constant. If succesful, sp is updated to skip the constant and return true. */
376+
/** Parse a constant. If successful, sp is updated to skip the constant and return true. */
377377
bool Const(const std::string& str, Span<const char>& sp)
378378
{
379379
if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) {
@@ -383,7 +383,7 @@ bool Const(const std::string& str, Span<const char>& sp)
383383
return false;
384384
}
385385

386-
/** Parse a function call. If succesful, sp is updated to be the function's argument(s). */
386+
/** Parse a function call. If successful, sp is updated to be the function's argument(s). */
387387
bool Func(const std::string& str, Span<const char>& sp)
388388
{
389389
if ((size_t)sp.size() >= str.size() + 2 && sp[str.size()] == '(' && sp[sp.size() - 1] == ')' && std::equal(str.begin(), str.end(), sp.begin())) {

src/streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class BitStreamReader
529529
explicit BitStreamReader(IStream& istream) : m_istream(istream) {}
530530

531531
/** Read the specified number of bits from the stream. The data is returned
532-
* in the nbits least signficant bits of a 64-bit uint.
532+
* in the nbits least significant bits of a 64-bit uint.
533533
*/
534534
uint64_t Read(int nbits) {
535535
if (nbits < 0 || nbits > 64) {

src/support/lockedpool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void* Arena::alloc(size_t size)
7575

7676
// Create the used-chunk, taking its space from the end of the free-chunk
7777
const size_t size_remaining = size_ptr_it->first - size;
78-
auto alloced = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
78+
auto allocated = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
7979
chunks_free_end.erase(size_ptr_it->second + size_ptr_it->first);
8080
if (size_ptr_it->first == size) {
8181
// whole chunk is used up
@@ -88,7 +88,7 @@ void* Arena::alloc(size_t size)
8888
}
8989
size_to_free_chunk.erase(size_ptr_it);
9090

91-
return reinterpret_cast<void*>(alloced->first);
91+
return reinterpret_cast<void*>(allocated->first);
9292
}
9393

9494
void Arena::free(void *ptr)

src/wallet/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& data
7272
database_filename = "wallet.dat";
7373
}
7474
LOCK(cs_db);
75-
// Note: An ununsed temporary BerkeleyEnvironment object may be created inside the
75+
// Note: An unused temporary BerkeleyEnvironment object may be created inside the
7676
// emplace function if the key already exists. This is a little inefficient,
7777
// but not a big concern since the map will be changed in the future to hold
7878
// pointers instead of objects, anyway.

0 commit comments

Comments
 (0)