Compile Error
I cannot understand why this happens.I copied and pasted this code from https://zoom-blc.com/how-to-create-first-dapp
Error message is as follows:
truffle(develop)> compile
Error parsing /Users/akitasatoshi/pet-shop-tutorial/contracts/Adoption.sol: ParsedContract.sol:10:3: ParserError: Expected primary expression.
return petId;
^
The code is as follows:
pragma solidity ^0.4.23;
contract Adoption {
address[16] public adopters;
function adopt(uint petId) returns(uint) {
require(petId >= 0 && petId =< 15);
adopters [pedId] = msg.sender;
return petId;
}
function getAdopters(uint) public returns (address[16]) {
return adopters;
}