Minor improvements to subroutine section

This commit is contained in:
Bobbi Webber-Manners 2018-05-01 17:22:00 -04:00 committed by GitHub
parent 27a1a9eb44
commit 8f29e9d968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,13 +447,13 @@ EightBall allows named subroutines to be defined, for example:
All subroutines must end with `endsub` statement.
A subroutine may have more than one `return` statement returning a numeric value:
A subroutine may return a `word` value to the caller using the `return` statement.
sub mySecondSubroutine()
return 2
endsub
If the flow of execution hits the `endsub` then 0 is returned to the caller.
If the flow of execution hits the `endsub` (without first encountering a `return` statement) then 0 is returned to the caller.
### Simple Subroutine Invocation