Skip to content

Commit 9cac3b2

Browse files
authored
Merge pull request #6149 from bmcdonnell-ionx/typos
Fix typos in the files
2 parents 95fb33f + 4a564ec commit 9cac3b2

File tree

38 files changed

+89
-89
lines changed

38 files changed

+89
-89
lines changed

TESTS/mbedmicro-mbed/static_assert/test_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define THE_ANSWER 42
33

44
// Tests for static asserts in different contexts
5-
// multiple asserts are used to garuntee no conflicts occur in generated labels
5+
// multiple asserts are used to guarantee no conflicts occur in generated labels
66

77
// Test for static asserts in global context
88
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define THE_ANSWER 42
33

44
// Tests for static asserts in different contexts
5-
// multiple asserts are used to garuntee no conflicts occur in generated labels
5+
// multiple asserts are used to guarantee no conflicts occur in generated labels
66

77
// Test for static asserts in global context
88
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),

TESTS/netsocket/host_tests/udp_shotgun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def handle(self):
3434
data, sock = self.request
3535
pattern = [ord(d) << 4 for d in data]
3636

37-
# Each byte in request indicates size of packet to recieve
37+
# Each byte in request indicates size of packet to receive
3838
# Each packet size is shifted over by 4 to fit in a byte, which
3939
# avoids any issues with endianess or decoding
4040
for packet in pattern:

TESTS/netsocket/tcp_packet_pressure/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void test_tcp_packet_pressure()
226226
}
227227
}
228228

229-
// Verify recieved data
229+
// Verify received data
230230
while (rx_count < size) {
231231
int rd = sock.recv(buffer, buffer_size);
232232
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

TESTS/netsocket/tcp_packet_pressure_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class PressureTest
232232
}
233233
}
234234

235-
// Verify recieved data
235+
// Verify received data
236236
while (rx_count < size) {
237237
int rd = sock.recv(buffer, buffer_size);
238238
TEST_ASSERT(rd > 0 || rd == NSAPI_ERROR_WOULD_BLOCK);

TESTS/netsocket/udp_packet_pressure/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void test_udp_packet_pressure()
222222
}
223223
}
224224

225-
// Prioritize recieving over sending packets to avoid flooding
225+
// Prioritize receiving over sending packets to avoid flooding
226226
// the network while handling erronous packets
227227
while (rx_count < size) {
228228
int rd = sock.recvfrom(NULL, buffer, buffer_size);

TESTS/netsocket/udp_packet_pressure_parallel/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class PressureTest
229229
}
230230
}
231231

232-
// Prioritize recieving over sending packets to avoid flooding
232+
// Prioritize receiving over sending packets to avoid flooding
233233
// the network while handling erronous packets
234234
while (rx_count < size) {
235235
int rd = sock.recvfrom(NULL, buffer, buffer_size);

drivers/Ethernet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Ethernet : private NonCopyable<Ethernet> {
9898
*/
9999
int send();
100100

101-
/** Recevies an arrived ethernet packet.
101+
/** Receives an arrived ethernet packet.
102102
*
103103
* Receiving an ethernet packet will drop the last received ethernet packet
104104
* and make a new ethernet packet ready to read.
@@ -110,7 +110,7 @@ class Ethernet : private NonCopyable<Ethernet> {
110110
*/
111111
int receive();
112112

113-
/** Read from an recevied ethernet packet.
113+
/** Read from an received ethernet packet.
114114
*
115115
* After receive returned a number bigger than 0 it is
116116
* possible to read bytes from this packet.
@@ -131,11 +131,11 @@ class Ethernet : private NonCopyable<Ethernet> {
131131
*/
132132
void address(char *mac);
133133

134-
/** Returns if an ethernet link is pressent or not. It takes a wile after Ethernet initializion to show up.
134+
/** Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
135135
*
136136
* @returns
137-
* 0 if no ethernet link is pressent,
138-
* 1 if an ethernet link is pressent.
137+
* 0 if no ethernet link is present,
138+
* 1 if an ethernet link is present.
139139
*
140140
* Example:
141141
* @code

drivers/I2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int I2C::write(int data) {
8181
return ret;
8282
}
8383

84-
// read - Master Reciever Mode
84+
// read - Master Receiver Mode
8585
int I2C::read(int address, char* data, int length, bool repeated) {
8686
lock();
8787
aquire();

drivers/I2C.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ class I2C : private NonCopyable<I2C> {
159159

160160
/** Start non-blocking I2C transfer.
161161
*
162-
* This function locks the deep sleep until any event has occured
162+
* This function locks the deep sleep until any event has occurred
163163
*
164-
* @param address 8/10 bit I2c slave address
164+
* @param address 8/10 bit I2C slave address
165165
* @param tx_buffer The TX buffer with data to be transfered
166166
* @param tx_length The length of TX buffer in bytes
167167
* @param rx_buffer The RX buffer which is used for received data

0 commit comments

Comments
 (0)