Skip to content

Commit 58a5874

Browse files
pan-Donatien Garnier
authored andcommitted
NFC: fix typo.
1 parent 5dd2d8b commit 58a5874

File tree

1 file changed

+4
-4
lines changed
  • docs/reference/api/connectivity/nfc

1 file changed

+4
-4
lines changed

docs/reference/api/connectivity/nfc/NFC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ A NDEF message is a collection of separate NDEF records where each of these reco
106106
107107
##### Parsing
108108
109-
The class `mbed::nfc::ndef::MessageParser` parse a buffer of data in input and produces parsing events that are forwarded to its delegate. To help developers we offer a more integrated parser (`mbed::nfc::ndef::common::SimpleMessageParser`) that parses well known NFC types records such as Text, URI or Mime records and produces usable objects out of the box.
109+
The class `mbed::nfc::ndef::MessageParser` parses a buffer of data in input and produces parsing events that are forwarded to its delegate. To help developers we offer a more integrated parser (`mbed::nfc::ndef::common::SimpleMessageParser`) that parses well known NFC types records such as Text, URI or Mime records and produces usable objects out of the box.
110110
111111
```
112112
#include "nfc/ndef/common/SimpleMessageParser.h"
@@ -175,13 +175,13 @@ void parse_ndef_message(const Span<const uint8_t> &buffer) {
175175
}
176176
```
177177
178-
Application can extend capabilities of `SimpleMessageParser` by adding new record parsers (`mbed::nfc::ndef::RecordParser`) at runtime.
178+
An application can extend capabilities of `SimpleMessageParser` by adding new record parsers (`mbed::nfc::ndef::RecordParser`) at runtime.
179179
180180
[![View code](https://www.mbed.com/embed/?type=library)](http://os-doc-builder.test.mbed.com/docs/development/mbed-os-api-doxy/FIXME)
181181
182182
##### Construction
183183
184-
The class `mbed::nfc::ndef::MessageBuilder` build a NDEF message into a user provided buffer. `URI`, `Text` and `Mime` type can be serialized in the builder with the help of the member function `append_as_record`.
184+
The class `mbed::nfc::ndef::MessageBuilder` builds a NDEF message into a user provided buffer. `URI`, `Text` and `Mime` type can be serialized in the builder with the help of the member function `append_as_record`.
185185
186186
```
187187
#include "nfc/ndef/MessageBuilder.h"
@@ -194,7 +194,7 @@ size_t build_ndef_message(const Span<uint8_t> &buffer) {
194194
MessageBuilder builder(buffer);
195195

196196
URI uri(URI::HTTPS_WWW, span_from_cstr("mbed.com"));
197-
Text text(Text::UTF8, span_from_cstr("en-US"), span_from_cstr("mbed website"));
197+
Text text(Text::UTF8, span_from_cstr("en-US"), span_from_cstr("Mbed website"));
198198

199199
uri.append_as_record(builder);
200200
text.append_as_record(builder, /* last record */ true);

0 commit comments

Comments
 (0)