Skip to content

Commit 14defce

Browse files
committed
Correct typos in comments and documentation
1 parent 8d54873 commit 14defce

File tree

17 files changed

+21
-21
lines changed

17 files changed

+21
-21
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Unit Tests
22

33
on:
44
pull_request:
5-
# Only run workflow if a file in these paths are modified
5+
# Only run workflow if a file in these paths is modified
66
paths:
77
- ".github/workflows/unit-tests.yml"
88
- "test/**"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This repository hosts the hardware independent layer of Arduino core.
99
All Arduino official cores are being ported to the new structure so they take advantage of this single repo.
1010

1111
Including this repo in your existing Arduino core will allow the language to grow and include new features.
12-
For backwards compatibility, every revision of this repo will increase `ARDUINO_API_VERSION` define.
12+
For backwards compatibility, every revision of this repo will increase the `ARDUINO_API_VERSION` define.
1313

1414
Some cores have been ported to the new structure, for example:
1515
* megaAVR (https://github.com/arduino/ArduinoCore-megaAVR)
@@ -21,7 +21,7 @@ These repositories **don't** contain the needed `api` subfolder; to "complete" t
2121

2222
### Porting tips
2323

24-
In the future, core apis will be updated independently from the core, so all the compatible cores will seamlessly adopt new features.
24+
In the future, core APIs will be updated independently from the core, so all the compatible cores will seamlessly adopt new features.
2525
This requires support from all the IDEs, so in the meantime we suggest to release the core by copying a snapshot of this `api` folder.
2626

2727
The most elegant and effective solution is to develop the core with `api` symlinked and produce the distributable archive by telling `tar` to follow symlinks.

api/IPAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ bool IPAddress::fromString(const char *address)
6666
else if (c == '.')
6767
{
6868
if (dots == 3) {
69-
// Too much dots (there must be 3 dots)
69+
// Too many dots (there must be 3 dots)
7070
return false;
7171
}
7272
if (acc < 0) {

api/Udp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ class UDP : public Stream {
4848

4949
// Sending UDP packets
5050

51-
// Start building up a packet to send to the remote host specific in ip and port
51+
// Start building up a packet to send to the remote host specified in ip and port
5252
// Returns 1 if successful, 0 if there was a problem with the supplied IP address or port
5353
virtual int beginPacket(IPAddress ip, uint16_t port) =0;
54-
// Start building up a packet to send to the remote host specific in host and port
54+
// Start building up a packet to send to the remote host specified in host and port
5555
// Returns 1 if successful, 0 if there was a problem resolving the hostname or port
5656
virtual int beginPacket(const char *host, uint16_t port) =0;
5757
// Finish off this packet and send it

api/deprecated-avr-comp/avr/interrupt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
/*
2020
Empty file.
2121
This file is here to allow compatibility with sketches (made for AVR)
22-
that includes <AVR/interrupt.h>
22+
that include <AVR/interrupt.h>
2323
*/

api/deprecated/Client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// including Client.h is deprecated, for all future projects use Arduino.h instead
2020

21-
// This include is added for compatibility, it will be remove on the next
21+
// This include is added for compatibility, it will be removed on the next
2222
// major release of the API
2323
#include "../Client.h"
2424

api/deprecated/HardwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// including HardwareSerial.h is deprecated, for all future projects use Arduino.h instead
2020

21-
// This include is added for compatibility, it will be remove on the next
21+
// This include is added for compatibility, it will be removed on the next
2222
// major release of the API
2323
#include "../HardwareSerial.h"
2424

api/deprecated/IPAddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// including IPAddress.h is deprecated, for all future projects use Arduino.h instead
2020

21-
// This include is added for compatibility, it will be remove on the next
21+
// This include is added for compatibility, it will be removed on the next
2222
// major release of the API
2323
#include "../IPAddress.h"
2424

api/deprecated/Print.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// including Print.h is deprecated, for all future projects use Arduino.h instead
2020

21-
// This include is added for compatibility, it will be remove on the next
21+
// This include is added for compatibility, it will be removed on the next
2222
// major release of the API
2323
#include "../Print.h"
2424

api/deprecated/Printable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// including Printable.h is deprecated, for all future projects use Arduino.h instead
2020

21-
// This include is added for compatibility, it will be remove on the next
21+
// This include is added for compatibility, it will be removed on the next
2222
// major release of the API
2323
#include "../Printable.h"
2424

0 commit comments

Comments
 (0)