Skip to content

Commit

Permalink
Merge pull request #4418 from scubbo/patch-1
Browse files Browse the repository at this point in the history
Correction to comment in function_types.bal
  • Loading branch information
anupama-pathirage committed Jun 21, 2023
2 parents 7be6b18 + 2417680 commit 1930a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/function-types/function_types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function main() {
io:println(evenFunc1(5));
io:println(evenFunc1(6));

// Type of the `evenFunc1` variable is the `function(int num = 5) returns boolean` function type.
// Type of the `evenFunc2` variable is the `function (int num = 5) returns boolean` function type.
function (int num = 5) returns boolean evenFunc2 = isEven;

// Invoke the function with the default value defined in the function type.
Expand Down

0 comments on commit 1930a74

Please sign in to comment.