Browse Source

Fix spelling

a1346054 4 years ago
parent
commit
a6cd75a596

+ 1 - 1
makerelease-osx.mk

@@ -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)
 
 

+ 1 - 1
src/AppleTLSContext.cc

@@ -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;

+ 1 - 1
src/DHTSetup.h

@@ -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>>>

+ 1 - 1
src/DiskWriter.h

@@ -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;

+ 1 - 1
src/HttpHeaderProcessor.h

@@ -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;

+ 1 - 1
src/Netrc.cc

@@ -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()));
           }

+ 1 - 1
src/PeerListenCommand.h

@@ -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);

+ 1 - 1
src/SeedCriteria.h

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

+ 1 - 1
src/WrDiskCache.h

@@ -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

+ 1 - 1
src/bittorrent_helper.h

@@ -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

+ 1 - 1
src/option_processing.cc

@@ -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);