aboutsummaryrefslogtreecommitdiff
path: root/lessons/src/lesson001_basics
diff options
context:
space:
mode:
Diffstat (limited to 'lessons/src/lesson001_basics')
-rw-r--r--lessons/src/lesson001_basics/code.gleam4
-rw-r--r--lessons/src/lesson001_basics/text.html16
2 files changed, 18 insertions, 2 deletions
diff --git a/lessons/src/lesson001_basics/code.gleam b/lessons/src/lesson001_basics/code.gleam
index 440dc98..67cc6b4 100644
--- a/lessons/src/lesson001_basics/code.gleam
+++ b/lessons/src/lesson001_basics/code.gleam
@@ -1,5 +1,7 @@
+// Import a Gleam module from the standard library
import gleam/io
pub fn main() {
- io.println("Hello, Mike!")
+ // Print to the console
+ io.println("Hello, Joe!")
}
diff --git a/lessons/src/lesson001_basics/text.html b/lessons/src/lesson001_basics/text.html
index 53bd3d3..8e2033a 100644
--- a/lessons/src/lesson001_basics/text.html
+++ b/lessons/src/lesson001_basics/text.html
@@ -1,3 +1,17 @@
<p>
- Hey look, cool stuff!
+ Here is a program that prints out the text "Hello, Joe!".
+</p>
+<p>
+ It does this by using the `println` function which has been imported from the
+ <a href="https://hexdocs.pm/gleam_stdlib/gleam/io.html"><code>gleam/io</code></a>
+ module, which is part of the Gleam standard library.
+</p>
+<p>
+ In a normal Gleam program this program would be run use the command
+ <code>gleam run</code> on the command line, but here in this tutorial the
+ program is automatically compiled and run as the code is edited.
+</p>
+<p>
+ Try changing the text being printed to <code>Hello, Mike!</code> and see what
+ happens.
</p>