Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/guides/compile-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ greeting.

```
馃弫 馃崌
馃榾 馃敜Hey!馃敜鉂楋笍
馃榾 馃敜馃憢馃實馃敜鉂楋笍
馃崏
```

Expand All @@ -55,10 +55,16 @@ is a native executable you can run like any other executable. Let鈥檚 try:
./greeter
```

You should see the following greeting output in the console:

```
馃憢馃實
```

Congratulations! You鈥檝e written your first program. But how does it actually
work?

It鈥檚 simple: `馃敜Hey!馃敜` is a string literal. Every character between
It鈥檚 simple: `馃敜馃憢馃實馃敜` is a string literal. Every character between
two 馃敜 is then part of the string.

Then we call the 馃榾 method on this string. And guess what, it prints the string
Expand Down
3 changes: 2 additions & 1 deletion src/guides/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ You鈥檙e ready to go! Try this, for example:

```bash
echo '馃弫 馃崌
馃榾 馃敜Hello World!馃敜鉂楋笍
馃榾 馃敜馃憢馃實馃敜鉂楋笍
馃崏' > hello.emojic
./emojicodec hello.emojic # Compile it
./hello # Run it!
# the text '馃憢馃實' should print to the console
```

## Installing for Arch Linux
Expand Down
8 changes: 8 additions & 0 deletions src/pages/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
<div class="hello-world__pre-container">
<pre class="hello-world__pre"><code>馃弫 馃崌
馃榾 馃敜Hello World!馃敜鉂楋笍
馃崏</code></pre>
</div>

<h2 class="hello-world__h2">Need to see it in only emoji?</h2>

<div class="hello-world__pre-container">
<pre class="hello-world__pre"><code>馃弫 馃崌
馃榾 馃敜馃憢馃實馃敜鉂楋笍
馃崏</code></pre>
</div>
</div>
Expand Down