Skip to content

Commit

Permalink
Update programs_and_modules.bal
Browse files Browse the repository at this point in the history
  • Loading branch information
praneesha authored Sep 20, 2023
1 parent fb709c0 commit 439702c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/programs-and-modules/programs_and_modules.bal
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!");
}

0 comments on commit 439702c

Please sign in to comment.