Skip to content

Commit 1e74694

Browse files
committed
showing that value removed can stored
1 parent 4ed4133 commit 1e74694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/api_en/IntList_remove.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ void setup() {
2121
inventory.append(15);
2222
inventory.append(102);
2323
println(inventory);
24-
inventory.remove(0);
24+
int val = inventory.remove(0);
2525
println(inventory);
26+
println("The value " + val + " was removed.");
2627
}
2728
2829
]]></code>

0 commit comments

Comments
 (0)