Skip to content

Commit d168ce7

Browse files
deejay1luben
authored andcommitted
Fix typos in README and code
1 parent 612e7eb commit d168ce7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/github/luben/zstd/util/Native.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static String resourceName() {
4949

5050
/**
5151
* Tell the library to assume the native library is already loaded.
52-
* This is excape hatch for environments that have special requirements for how
52+
* This is escape hatch for environments that have special requirements for how
5353
* the native part is loaded. This allows them to load the so/dll manually and tell
5454
* zstd-jni to not attempt loading it again.
5555
*/
@@ -73,7 +73,7 @@ public static synchronized void load(final File tempFolder) {
7373

7474
String overridePath = System.getProperty(nativePathOverride);
7575
if (overridePath != null) {
76-
// Do not fall-back to auto-discovery - consumers know better
76+
// Do not fall back to auto-discovery - consumers know better
7777
System.load(overridePath);
7878
loaded = true;
7979
return;
@@ -91,8 +91,8 @@ public static synchronized void load(final File tempFolder) {
9191

9292
InputStream is = Native.class.getResourceAsStream(resourceName);
9393
if (is == null) {
94-
// fall-back to loading the zstd-jni from the system library path.
95-
// It also cover loading on Android.
94+
// fallback to loading the zstd-jni from the system library path.
95+
// It also covers loading on Android.
9696
try {
9797
System.loadLibrary(libnameShort);
9898
loaded = true;
@@ -145,7 +145,7 @@ public static synchronized void load(final File tempFolder) {
145145
}
146146
loaded = true;
147147
} catch (IOException e) {
148-
// IO errors in extacting and writing the shared object in the temp dir
148+
// IO errors in extracting and writing the shared object in the temp dir
149149
ExceptionInInitializerError err = new ExceptionInInitializerError(
150150
"Cannot unpack " + libname + ": " + e.getMessage());
151151
err.setStackTrace(e.getStackTrace());

0 commit comments

Comments
 (0)