Function definition grammar is wrong

Does make sense for me. Would you like to create an issue and pr?