-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
praneesha
authored
Sep 20, 2023
1 parent
fb709c0
commit 439702c
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// This import declaration binds the prefix `io` to the `ballerina/io` module. | ||
// The prefix by default comes form the last part of the module name. | ||
// The `ballerina` org name is reserved for the Ballerina library modules. | ||
// This import declaration binds the prefix `io` to the `ballerina/io` package. | ||
// The prefix by default comes from the last part of the package name. | ||
// The `ballerina` org name is reserved for the Ballerina library packages. | ||
import ballerina/io; | ||
|
||
// `main` function is the program entry point. | ||
// `public` makes function visible outside the module. | ||
// `public` makes the function visible outside the package. | ||
public function main() { | ||
// Here `io:println` means function `println` is in the module bound to prefix `io`. | ||
// Here `io:println` means function `println` is in the package bound to prefix `io`. | ||
io:println("Hello, World!"); | ||
} |