Getting a ParserError

Whilst trying this random number game on solidity I keep getting a parser error can you help me identify where I am going wrong.
“ParserError: Expected ‘{’ but got ‘return’ function setter() public view return(string memory){}”

1 Like

needs to be returns not return thats the fix. just a small typo

1 Like

Wow that was it. Lol thanks.

2 Likes

no worries ive been there way too many times myself. thats what hours of coding does to the brain lol

1 Like