Skip to content

Commit a24fc45

Browse files
authored
Add example code to String.remove() page
Fixes #291.
1 parent 215930c commit a24fc45

File tree

1 file changed

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

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ Nada
3939
// OVERVIEW SECTION ENDS
4040

4141

42+
// HOW TO USE SECTION STARTS
43+
[#howtouse]
44+
--
45+
46+
[float]
47+
=== Example Code
48+
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
49+
[source,arduino]
50+
----
51+
String greeting = "hello";
52+
greeting.remove(2, 2); // greeting agora contém "heo"
53+
----
54+
[%hardbreaks]
55+
--
4256

4357
// HOW TO USE SECTION ENDS
4458

0 commit comments

Comments
 (0)