I'm getting this error., expected ';' before '}' token

A function starts with a { and ends with a }

void myFunction()
{
//stuff
}