From d31f238be02899858f1bdac0efbccfa4da5bac1d Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Wed, 11 Jan 2023 13:42:30 -0500 Subject: [PATCH] fix typos (#1843) --- include/ZeroTierOne.h | 2 +- java/jni/ZT_jniutils.cpp | 3 +-- java/src/com/zerotier/sdk/ResultCode.java | 2 +- node/MAC.hpp | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 23f97b388..a12b3291b 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -384,7 +384,7 @@ enum ZT_ResultCode */ ZT_RESULT_OK_IGNORED = 1, - // Fatal errors (>100, <1000) + // Fatal errors (>=100, <1000) /** * Ran out of memory diff --git a/java/jni/ZT_jniutils.cpp b/java/jni/ZT_jniutils.cpp index bfb969abb..c479f87e2 100644 --- a/java/jni/ZT_jniutils.cpp +++ b/java/jni/ZT_jniutils.cpp @@ -43,7 +43,7 @@ jobject createResultObject(JNIEnv *env, ZT_ResultCode code) resultClass = lookup.findClass("com/zerotier/sdk/ResultCode"); if(resultClass == NULL) { - LOGE("Couldnt find ResultCode class"); + LOGE("Couldn't find ResultCode class"); return NULL; // exception thrown } @@ -1032,4 +1032,3 @@ jobject newVirtualNetworkDNS(JNIEnv *env, const ZT_VirtualNetworkDNS &dns) #ifdef __cplusplus } #endif - diff --git a/java/src/com/zerotier/sdk/ResultCode.java b/java/src/com/zerotier/sdk/ResultCode.java index 66f575613..09e7d3b13 100644 --- a/java/src/com/zerotier/sdk/ResultCode.java +++ b/java/src/com/zerotier/sdk/ResultCode.java @@ -41,7 +41,7 @@ public enum ResultCode { */ RESULT_OK(0), - // Fatal errors (> 0, < 1000) + // Fatal errors (>=100, <1000) /** * Ran out of memory */ diff --git a/node/MAC.hpp b/node/MAC.hpp index 76ee4bf31..de72a1aed 100644 --- a/node/MAC.hpp +++ b/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) * - * 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 */