Skip to content

Commit 3a8cb6d

Browse files
committed
Fix misspelled words detected by codespell
1 parent 28a8b6d commit 3a8cb6d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
File::File(SdFile f, const char *n) {
22-
// oh man you are kidding me, new() doesnt exist? Ok we do it by hand!
22+
// oh man you are kidding me, new() doesn't exist? Ok we do it by hand!
2323
_file = (SdFile *)malloc(sizeof(SdFile));
2424
if (_file) {
2525
memcpy(_file, &f, sizeof(SdFile));

src/SD.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
directories which simplifies interacting with files in subdirectories.
2626
2727
Utility methods are provided to determine whether a file exists
28-
and to create a directory heirarchy.
28+
and to create a directory hierarchy.
2929
3030
3131
Note however that not all functionality provided by the underlying
@@ -290,7 +290,7 @@ namespace SDLib {
290290
file/directory with the associated file open mode property.
291291
292292
Always returns true if the directory traversal hasn't reached the
293-
bottom of the directory heirarchy.
293+
bottom of the directory hierarchy.
294294
295295
Returns false once the file has been opened--to prevent the traversal
296296
from descending further. (This may be unnecessary.)
@@ -399,7 +399,7 @@ namespace SDLib {
399399
// extract just the name of the next subdirectory
400400
uint8_t idx = strchr(filepath, '/') - filepath;
401401
if (idx > 12) {
402-
idx = 12; // dont let them specify long names
402+
idx = 12; // don't let them specify long names
403403
}
404404
char subdirname[13];
405405
strncpy(subdirname, filepath, idx);
@@ -424,7 +424,7 @@ namespace SDLib {
424424
}
425425

426426
*index = (int)(filepath - origpath);
427-
// parent is now the parent diretory of the file!
427+
// parent is now the parent directory of the file!
428428
return *parent;
429429
}
430430

@@ -557,7 +557,7 @@ namespace SDLib {
557557
boolean SDClass::mkdir(const char *filepath) {
558558
/*
559559
560-
Makes a single directory or a heirarchy of directories.
560+
Makes a single directory or a hierarchy of directories.
561561
562562
A rough equivalent to `mkdir -p`.
563563
@@ -568,7 +568,7 @@ namespace SDLib {
568568
boolean SDClass::rmdir(const char *filepath) {
569569
/*
570570
571-
Remove a single directory or a heirarchy of directories.
571+
Remove a single directory or a hierarchy of directories.
572572
573573
A rough equivalent to `rm -rf`.
574574

0 commit comments

Comments
 (0)