aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson01_hello_world
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-03-26 11:36:11 +0000
committerLouis Pilfold <louis@lpil.uk>2024-03-26 11:36:11 +0000
commit04ec0d86c8b43d1cca48adc937b3e596a10577a1 (patch)
tree8624097a135e0e879588279eed82c4c2f82bfbab /src/content/chapter0_basics/lesson01_hello_world
parent9250d4324073874d393282c941f9981ce2686680 (diff)
downloadtour-04ec0d86c8b43d1cca48adc937b3e596a10577a1.tar.gz
tour-04ec0d86c8b43d1cca48adc937b3e596a10577a1.zip
Improve introduction of modules and imports
Thanks @RyanBrewer317!
Diffstat (limited to 'src/content/chapter0_basics/lesson01_hello_world')
-rw-r--r--src/content/chapter0_basics/lesson01_hello_world/code.gleam2
-rw-r--r--src/content/chapter0_basics/lesson01_hello_world/en.html14
2 files changed, 5 insertions, 11 deletions
diff --git a/src/content/chapter0_basics/lesson01_hello_world/code.gleam b/src/content/chapter0_basics/lesson01_hello_world/code.gleam
index 67cc6b4..30530b2 100644
--- a/src/content/chapter0_basics/lesson01_hello_world/code.gleam
+++ b/src/content/chapter0_basics/lesson01_hello_world/code.gleam
@@ -1,7 +1,5 @@
-// Import a Gleam module from the standard library
import gleam/io
pub fn main() {
- // Print to the console
io.println("Hello, Joe!")
}
diff --git a/src/content/chapter0_basics/lesson01_hello_world/en.html b/src/content/chapter0_basics/lesson01_hello_world/en.html
index a7dfc25..b555160 100644
--- a/src/content/chapter0_basics/lesson01_hello_world/en.html
+++ b/src/content/chapter0_basics/lesson01_hello_world/en.html
@@ -1,16 +1,12 @@
-<p>Here is a program that prints out the text "Hello, Joe!".</p>
<p>
- It does this by using the <code>println</code> 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.
+ Here is a tiny program that prints out the text "Hello, Joe!". We'll explain
+ how it works shortly.
</p>
<p>
- In a normal Gleam program this program would be run using the command
+ In a normal Gleam project this program would be run using the command
<code>gleam run</code> on the command line, but here in this tour the program
- is automatically compiled and run as the code is edited.
+ is compiled and run inside your web browser, allowing you to try Gleam without
+ installing anything on your computer.
</p>
<p>
Try changing the text being printed to <code>Hello, Mike!</code> and see what