From a98cc4625db5e8f70393d1508de07b6672c91dba Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Fri, 28 May 2021 08:29:07 -0700 Subject: [PATCH] Fix minor misspellings in comments Codespell detected a few minor typos in the API headers. Fix their spelling. --- api/Common.h | 2 +- api/HardwareSPI.h | 2 +- api/IPAddress.h | 2 +- api/Print.h | 2 +- api/Stream.h | 2 +- api/String.h | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/Common.h b/api/Common.h index 6e12a74c..0bcc46bb 100644 --- a/api/Common.h +++ b/api/Common.h @@ -85,7 +85,7 @@ int atexit(void (*func)()) __attribute__((weak)); int main() __attribute__((weak)); #ifdef EXTENDED_PIN_MODE -// Platforms who wnat to declare more than 256 pins need to define EXTENDED_PIN_MODE globally +// Platforms who want to declare more than 256 pins need to define EXTENDED_PIN_MODE globally typedef uint32_t pin_size_t; #else typedef uint8_t pin_size_t; diff --git a/api/HardwareSPI.h b/api/HardwareSPI.h index d6609469..8b8affd0 100644 --- a/api/HardwareSPI.h +++ b/api/HardwareSPI.h @@ -124,7 +124,7 @@ class HardwareSPI virtual void end() = 0; }; -// Alias SPIClass to HardwareSPI since it's already the defacto standard for SPI classe name +// Alias SPIClass to HardwareSPI since it's already the defacto standard for SPI class name typedef HardwareSPI SPIClass; } diff --git a/api/IPAddress.h b/api/IPAddress.h index 8f6ca540..d70783ca 100644 --- a/api/IPAddress.h +++ b/api/IPAddress.h @@ -23,7 +23,7 @@ #include "Printable.h" #include "String.h" -// forward declartions of global name space friend classes +// forward declarations of global name space friend classes class EthernetClass; class DhcpClass; class DNSClient; diff --git a/api/Print.h b/api/Print.h index fc30b45b..5a19fe78 100644 --- a/api/Print.h +++ b/api/Print.h @@ -57,7 +57,7 @@ class Print } // default to zero, meaning "a single write may block" - // should be overriden by subclasses with buffering + // should be overridden by subclasses with buffering virtual int availableForWrite() { return 0; } size_t print(const __FlashStringHelper *); diff --git a/api/Stream.h b/api/Stream.h index 11aaa208..e81c71ba 100644 --- a/api/Stream.h +++ b/api/Stream.h @@ -24,7 +24,7 @@ #include #include "Print.h" -// compatability macros for testing +// compatibility macros for testing /* #define getInt() parseInt() #define getInt(ignore) parseInt(ignore) diff --git a/api/String.h b/api/String.h index 54232f83..03ecf442 100644 --- a/api/String.h +++ b/api/String.h @@ -106,7 +106,7 @@ class String // returns true on success, false on failure (in which case, the string // is left unchanged). if the argument is null or invalid, the - // concatenation is considered unsucessful. + // concatenation is considered unsuccessful. bool concat(const String &str); bool concat(const char *cstr); bool concat(const char *cstr, unsigned int length); @@ -179,7 +179,7 @@ class String bool startsWith(const String &prefix, unsigned int offset) const; bool endsWith(const String &suffix) const; - // character acccess + // character access char charAt(unsigned int index) const; void setCharAt(unsigned int index, char c); char operator [] (unsigned int index) const; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy