The return statement terminates the execution of a function with success and sets its success result values. Any deferred statements registered by the function will then be executed in reverse order, which may alter the function's result.
Example of defer statement modifying the result after the fact.