fix outdated `try(..., func())` example
basic code generation