docs($compile): fix param name and improve example variable name

Closes #5310