Skip to content

Commit f7820c8

Browse files
authored
Merge pull request #1455 from s1050613/patch-1
Fix typo StringReplace.md
2 parents 0c3e183 + 16f1821 commit f7820c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/built-in-examples/08.strings/StringReplace/StringReplace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you try to replace a substring that's more than the whole String itself, noth
3030

3131
```arduino
3232
String stringOne = "<html><head><body>";
33-
String stringTwo = stringOne.replace("<html><head></head><body></body></html>", "Blah");
33+
stringOne.replace("<html><head></head><body></body></html>", "Blah");
3434
```
3535

3636
In this case, the code will compile, but `stringOne` will remain unchanged, since the replacement substring is more than the String itself.
@@ -43,4 +43,4 @@ You can find more basic tutorials in the [built-in examples](/built-in-examples)
4343

4444
You can also explore the [language reference](https://www.arduino.cc/reference/en/), a detailed collection of the Arduino programming language.
4545

46-
*Last Revision 2018/03/27 by SM*
46+
*Last Revision 2018/03/27 by SM*

0 commit comments

Comments
 (0)