You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/hello_world.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ let main = puts "Hello, World!"
10
10
11
11
Let's break this down line by line.
12
12
13
-
The code starts with an import statement. Since we want to output, or "print" a string, we'll need to import the function that allows us to do that. In this case, that's the function [`puts`]() from the [`io`]() module of the [standard library](standard_library.md).
13
+
The code starts with an import statement. Since we want to output, or "print" a string, we'll need to import the function that allows us to do that. In this case, that's the function [`puts`](stdlib/io.md#puts) from the [`io`](stdlib/io.md) module of the [standard library](stdlib/stdlib.md).
14
14
15
15
Next is the [value binding](language/value-bindings.md) of `main`. Every Som program needs to define a value called `main`, which is where that program's execution starts. In this case, all that `main` does is use the imported `puts` function to print a string.
0 commit comments