E2018 Parse Errors

trailing-comma-call

trailing comma in function call

When this occurs

`foo(1, 2,)`

Example error message

error[E2018]: unexpected trailing comma in function call

How to fix

Remove the trailing comma from your function call: `foo(1, 2)` not `foo(1, 2,)`.

Related errors