Skip to content

Commit

Permalink
Merge pull request ballerina-platform#5279 from ballerina-platform/Ma…
Browse files Browse the repository at this point in the history
…ryamZi-patch-1

Fix a typo
  • Loading branch information
MaryamZi committed Apr 2, 2024
2 parents 8b2d472 + 7c34ac2 commit a912189
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Interface to exteral code
# Interface to external code

Ballerina supports interfacing to external code. This can be done by using the `external` keyword, instead of implementing the function body. The implementation figures out how to map to the external implementation. As part of interfacing to an external implementation, Ballerina supports another basic type called `handle`. The `handle` type is basically an opaque handle that can be passed to and from external functions. There is no typing for `handle` and it can be added as a private member of a Ballerina class for better type safety.

::: code interface_to_external_code.bal :::

::: out interface_to_external_code.out :::
::: out interface_to_external_code.out :::

0 comments on commit a912189

Please sign in to comment.