Fix spelling

This commit is contained in:
a1346054 2021-09-12 19:31:41 +00:00 committed by Tatsuhiro Tsujikawa
parent aea080969c
commit a6cd75a596
11 changed files with 11 additions and 11 deletions

View File

@ -238,7 +238,7 @@ endef
export ARIA2_DISTXML
# Detect numer of CPUs to be used with make -j
# Detect number of CPUs to be used with make -j
CPUS = $(shell sysctl hw.ncpu | cut -d" " -f2)

View File

@ -131,7 +131,7 @@ struct hash_finder {
std::string errToString(OSStatus err)
{
std::string rv = "Unkown error";
std::string rv = "Unknown error";
CFRef<CFStringRef> cerr(SecCopyErrorMessageString(err, nullptr));
if (!cerr) {
return rv;

View File

@ -52,7 +52,7 @@ public:
~DHTSetup();
// Returns two vector of Commands. First one contains regular
// commands. Secod one contains so called routine commands, which
// commands. Second one contains so called routine commands, which
// executed once per event poll returns.
std::pair<std::vector<std::unique_ptr<Command>>,
std::vector<std::unique_ptr<Command>>>

View File

@ -62,7 +62,7 @@ public:
virtual void closeFile() = 0;
/**
* Opens a file. If the file doesnot exists, an exception may be
* Opens a file. If the file does not exist, an exception may be
* thrown.
*/
virtual void openExistingFile(int64_t totalLength = 0) = 0;

View File

@ -61,7 +61,7 @@ public:
bool parse(const std::string& data);
/**
* Retruns the number of bytes processed in the last invocation of
* Returns the number of bytes processed in the last invocation of
* parse().
*/
size_t getLastBytesProcessed() const;

View File

@ -179,7 +179,7 @@ void Netrc::parse(const std::string& path)
else {
if (!authenticator) {
throw DL_ABORT_EX(
fmt("Netrc:parse error. %s encounterd where 'machine'"
fmt("Netrc:parse error. %s encountered where 'machine'"
" or 'default' expected.",
std::string((*iter).first, (*iter).second).c_str()));
}

View File

@ -60,7 +60,7 @@ public:
virtual bool execute() CXX11_OVERRIDE;
/**
* Binds port. If successful, the bound port number is assinged to port and
* Binds port. If successful, the bound port number is assigned to port and
* returns true, otherwise port is undefined and returns false.
*/
bool bindPort(uint16_t& port, SegList<int>& seq);

View File

@ -49,7 +49,7 @@ public:
virtual bool evaluate() = 0;
/**
* Used for reseting status.
* Used for resetting status.
*/
virtual void reset() = 0;
};

View File

@ -52,7 +52,7 @@ public:
// Adds the cache entry |ent| to the storage. The size of cached
// data of ent is added to total_.
bool add(WrDiskCacheEntry* ent);
// Removes the cache entry |ent| from the stroage. The size of
// Removes the cache entry |ent| from the storage. The size of
// cached data of ent is subtracted from total_.
bool remove(WrDiskCacheEntry* ent);
// Updates the already added entry |ent|. The |delta| means how many

View File

@ -210,7 +210,7 @@ void createPeerMessageString(unsigned char* msg, size_t msgLength,
size_t payloadLength, uint8_t messageId);
/**
* Creates compact form(packed addresss + 2bytes port) and stores the
* Creates compact form(packed address + 2bytes port) and stores the
* results in compact. This function looks addr and if it is IPv4
* address, it stores 6bytes in compact and if it is IPv6, it stores
* 18bytes in compact. So compact must be at least 18 bytes and

View File

@ -275,7 +275,7 @@ error_code::Value option_processing(Option& op, bool standalone,
// we must clear eof bit and seek to the beginning of the buffer.
cmdstream.clear();
cmdstream.seekg(0, std::ios::beg);
// finaly let's parse and store command-iine options.
// finally let's parse and store command-line options.
op.setParent(confOption);
oparser->parse(op, cmdstream);
oparser->parse(op, options);