瀏覽代碼

fix typos (#1843)

Brenton Bostick 2 年之前
父節點
當前提交
d31f238be0
共有 4 個文件被更改,包括 4 次插入5 次删除
  1. 1 1
      include/ZeroTierOne.h
  2. 1 2
      java/jni/ZT_jniutils.cpp
  3. 1 1
      java/src/com/zerotier/sdk/ResultCode.java
  4. 1 1
      node/MAC.hpp

+ 1 - 1
include/ZeroTierOne.h

@@ -384,7 +384,7 @@ enum ZT_ResultCode
 	 */
 	 */
 	ZT_RESULT_OK_IGNORED = 1,
 	ZT_RESULT_OK_IGNORED = 1,
 
 
-	// Fatal errors (>100, <1000)
+	// Fatal errors (>=100, <1000)
 
 
 	/**
 	/**
 	 * Ran out of memory
 	 * Ran out of memory

+ 1 - 2
java/jni/ZT_jniutils.cpp

@@ -43,7 +43,7 @@ jobject createResultObject(JNIEnv *env, ZT_ResultCode code)
     resultClass = lookup.findClass("com/zerotier/sdk/ResultCode");
     resultClass = lookup.findClass("com/zerotier/sdk/ResultCode");
     if(resultClass == NULL)
     if(resultClass == NULL)
     {
     {
-        LOGE("Couldnt find ResultCode class");
+        LOGE("Couldn't find ResultCode class");
         return NULL; // exception thrown
         return NULL; // exception thrown
     }
     }
 
 
@@ -1032,4 +1032,3 @@ jobject newVirtualNetworkDNS(JNIEnv *env, const ZT_VirtualNetworkDNS &dns)
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }
 #endif
 #endif
-

+ 1 - 1
java/src/com/zerotier/sdk/ResultCode.java

@@ -41,7 +41,7 @@ public enum ResultCode {
      */
      */
 	RESULT_OK(0),
 	RESULT_OK(0),
 
 
-    // Fatal errors (> 0, < 1000)
+    // Fatal errors (>=100, <1000)
     /**
     /**
      * Ran out of memory
      * Ran out of memory
      */
      */

+ 1 - 1
node/MAC.hpp

@@ -149,7 +149,7 @@ public:
 	/**
 	/**
 	 * Get the ZeroTier address for this MAC on this network (assuming no bridging of course, basic unicast)
 	 * Get the ZeroTier address for this MAC on this network (assuming no bridging of course, basic unicast)
 	 *
 	 *
-	 * This just XORs the next-lest-significant 5 bytes of the network ID again to unmask.
+	 * This just XORs the next-least-significant 5 bytes of the network ID again to unmask.
 	 *
 	 *
 	 * @param nwid Network ID
 	 * @param nwid Network ID
 	 */
 	 */