Skip to content

Commit f9115e4

Browse files
authored
Merge pull request #700 from SeppPenner/master
Fixed wrong double quotes in examples.
2 parents cbd3ffb + 3beb8eb commit f9115e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Language/Functions/Communication/Serial/print.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ An optional second parameter specifies the base (format) to use; permitted value
3434

3535
You can pass flash-memory based strings to `_Serial_.print()` by wrapping them with link:../../../../variables/utilities/progmem[F()]. For example:
3636

37-
`Serial.print(F(Hello World))`
37+
`Serial.print(F("Hello World"))`
3838

3939
To send data without conversion to its representation as characters, use link:../write[Serial.write()].
4040
[%hardbreaks]

Language/Functions/Communication/Serial/write.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void setup() {
5858
void loop() {
5959
Serial.write(45); // send a byte with the value 45
6060
61-
int bytesSent = Serial.write(hello); //send the string hello and return the length of the string.
61+
int bytesSent = Serial.write("hello"); //send the string "hello" and return the length of the string.
6262
}
6363
----
6464
[%hardbreaks]

0 commit comments

Comments
 (0)