Skip to content

Commit b3e12fb

Browse files
authored
Merge PR #526 "Add example code for String.remove()" from per1234
Add example code for String.remove()
2 parents bef4074 + abc1684 commit b3e12fb

File tree

1 file changed

+13
-0
lines changed
  • Language/Variables/Data Types/String/Functions

1 file changed

+13
-0
lines changed

Language/Variables/Data Types/String/Functions/remove.adoc

+13
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,20 @@ None
4444
// OVERVIEW SECTION ENDS
4545

4646

47+
// HOW TO USE SECTION STARTS
48+
[#howtouse]
49+
--
4750

51+
[float]
52+
=== Example Code
53+
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
54+
[source,arduino]
55+
----
56+
String greeting = "hello";
57+
greeting.remove(2, 2); // greeting now contains "heo"
58+
----
59+
[%hardbreaks]
60+
--
4861
// HOW TO USE SECTION ENDS
4962

5063

0 commit comments

Comments
 (0)