From abc1684fd783665472fb3d51dd61a3fc9a61f6b7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 5 Feb 2019 16:24:49 -0800 Subject: [PATCH] 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. --- .../Data Types/String/Functions/remove.adoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Language/Variables/Data Types/String/Functions/remove.adoc b/Language/Variables/Data Types/String/Functions/remove.adoc index 62ee03d9a..8897f9383 100644 --- a/Language/Variables/Data Types/String/Functions/remove.adoc +++ b/Language/Variables/Data Types/String/Functions/remove.adoc @@ -44,7 +44,20 @@ None // OVERVIEW SECTION ENDS +// HOW TO USE SECTION STARTS +[#howtouse] +-- +[float] +=== Example Code +// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ +[source,arduino] +---- +String greeting = "hello"; +greeting.remove(2, 2); // greeting now contains "heo" +---- +[%hardbreaks] +-- // HOW TO USE SECTION ENDS