Lesson 2 Error #78
-
Hello everyone, I keep coming up on an error that says "Expected "{" but got 'return' Does anyone know what I'm doing wrong here? Am I missing a curly bracket somewhere without knowing? UPDATE: Ok, I actually just realized it should be 'returns' not 'return' in that first line of code. However, another error popped up that says undeclared identifier for the last line of code. It's asking if I meant "SimpleStorage" for return simpleStorage.retrieve(); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured out the answer, and I feel silly now, yeesh. On the second line of the code I posted it should not be SimpleStorage simpleStorageArray = simpleStorageArray[_simpleStorageNumber]; it should be: Sorry for the spam folks. |
Beta Was this translation helpful? Give feedback.
I figured out the answer, and I feel silly now, yeesh. On the second line of the code I posted it should not be SimpleStorage simpleStorageArray = simpleStorageArray[_simpleStorageNumber]; it should be:
SimpleStorage simpleStorage = simpleStorageArray[_simpleStorageNumber];
Sorry for the spam folks.