8000 Fix minor misspellings in comments · kpewwd/ArduinoCore-API@a98cc46 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a98cc46

Browse files
Fix minor misspellings in comments
Codespell detected a few minor typos in the API headers. Fix their spelling.
1 parent 438172b commit a98cc46

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

api/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int atexit(void (*func)()) __attribute__((weak));
8585
int main() __attribute__((weak));
8686

8787
#ifdef EXTENDED_PIN_MODE
88-
// Platforms who wnat to declare more than 256 pins need to define EXTENDED_PIN_MODE globally
88+
// Platforms who want to declare more than 256 pins need to define EXTENDED_PIN_MODE globally
8989
typedef uint32_t pin_size_t;
9090
#else
9191
typedef uint8_t pin_size_t;

api/HardwareSPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class HardwareSPI
124124
virtual void end() = 0;
125125
};
126126

127-
// Alias SPIClass to HardwareSPI since it's already the defacto standard for SPI classe name
127+
// Alias SPIClass to HardwareSPI since it's already the defacto standard for SPI class name
128128
typedef HardwareSPI SPIClass;
129129

130130
}

api/IPAddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "Printable.h"
2424
#include "String.h"
2525

26-
// forward declartions of global name space friend classes
26+
// forward declarations of global name space friend classes
2727
class EthernetClass;
2828
class DhcpClass;
2929
class DNSClient;

api/Print.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Print
5757
}
5858

5959
// default to zero, meaning "a single write may block"
60-
// should be overriden by subclasses with buffering
60+
// should be overridden by subclasses with buffering
6161
virtual int availableForWrite() { return 0; }
6262

6363
size_t print(const __FlashStringHelper *);

api/Stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <inttypes.h>
2525
#include "Print.h"
2626

27-
// compatability macros for testing
27+
// compatibility macros for testing
2828
/*
2929
#define getInt() parseInt()
3030
#define getInt(ignore) parseInt(ignore)

api/String.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class String
106106

107107
// returns true on success, false on failure (in which case, the string
108108
// is left unchanged). if the argument is null or invalid, the
109-
// concatenation is considered unsucessful.
109+
// concatenation is considered unsuccessful.
110110
bool concat(const String &str);
111111
bool concat(const char *cstr);
112112
bool concat(const char *cstr, unsigned int length);
@@ -179,7 +179,7 @@ class String
179179
bool startsWith(const String &prefix, unsigned int offset) const;
180180
bool endsWith(const String &suffix) const;
181181

182-
// character acccess
182+
// character access
183183
char charAt(unsigned int index) const;
184184
void setCharAt(unsigned int index, char c);
185185
char operator [] (unsigned int index) const;

0 commit comments

Comments
 (0)
0