Skip to content

Commit 72387eb

Browse files
committed
Fix typos: misspell -w -error -source=text namespace.c
1 parent aa0f689 commit 72387eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

namespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ copy_ext_file_error(char *message, size_t size, int copy_retvalue, char *src_pat
725725
case 4:
726726
snprintf(message, size, "failed to write the extension path: %s", dst_path);
727727
default:
728-
rb_bug("unkown return value of copy_ext_file: %d", copy_retvalue);
728+
rb_bug("unknown return value of copy_ext_file: %d", copy_retvalue);
729729
}
730730
return message;
731731
}
@@ -832,7 +832,7 @@ escaped_basename(char *path, char *fname, char *rvalue)
832832
leaf = path;
833833
// `leaf + 1` looks uncomfortable (when leaf == path), but fname must not be the top-dir itself
834834
while ((found = strstr(leaf + 1, fname)) != NULL) {
835-
leaf = found; // find the last occurence for the path like /etc/my-crazy-lib-dir/etc.so
835+
leaf = found; // find the last occurrence for the path like /etc/my-crazy-lib-dir/etc.so
836836
}
837837
strcpy(rvalue, leaf);
838838
for (pos = rvalue; *pos; pos++) {

0 commit comments

Comments
 (0)