Skip to content

Commit

Permalink
fix two little bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaaf committed Oct 26, 2023
1 parent 6dfeb20 commit 182bead
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void setup() {
Serial.print("The first element of the first list is: ");
Serial.println(mutableList.get(0));
Serial.print("The first element of the second list is: ");
Serial.println(immutableList.gte(0));
Serial.println(immutableList.get(0));

Serial.println("You see, that the first element of the first list has the the new value and the first element of the second list has not changed.");
Serial.println("Elements of mutable lists can be manipulate via the same variable; immutable lists cannot!");
Expand Down
4 changes: 0 additions & 4 deletions src/AbstractList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,6 @@ class AbstractList {
* @param arr Array to fill.
*/
void toArray(T *arr) {
if (getSize() == 0) {
return arr;
}

for (int i = 0; i < getSize(); i++) {
arr[i] = get(i);
}
Expand Down

0 comments on commit 182bead

Please sign in to comment.