Skip to content

Commit abc1684

Browse files
committed
Add example code for String.remove()
I found the description a bit difficult to understand and there is no demonstration of remove in the tutorials.
1 parent afde77c commit abc1684

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

Lines changed: 13 additions & 0 deletions
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)