diff options
Diffstat (limited to 'docs/pod/fype.pod')
| -rw-r--r-- | docs/pod/fype.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/pod/fype.pod b/docs/pod/fype.pod index 9282136..98c58ba 100644 --- a/docs/pod/fype.pod +++ b/docs/pod/fype.pod @@ -454,9 +454,9 @@ keyword in order to check if a procedure has been defined or not. =head2 Functions -A function should be defined with the B<func> keyword and deleted with the B<undef> keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above). +A function should be defined with the B<fun> keyword and deleted with the B<undef> keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above). - func foo { + fun foo { say 1 + a * 3 + b; my c = 6; } @@ -470,8 +470,8 @@ A function should be defined with the B<func> keyword and deleted with the B<und Nested functions work the same way the nested procedures work, with the exception that nested functions will not be available any more after the function has been left! - func foo { - func bar { + fun foo { + fun bar { say "Hello i am nested"; } |
