Skip to content

Commit 8f2f110

Browse files
author
gamingacct
committed
Update doc/ui.adoc
1 parent 3b585c9 commit 8f2f110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/ui.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
UI
22
--
33

4-
Up next are the UI elements: The text messages at the beginning and end of the game and the
4+
Up next are the UI elements. The text messages at the beginning and end of the game and the
55
clock at the top left of the screen.
66

77
We need two more imports:
@@ -19,7 +19,7 @@ The start message is a constant and therefore defined with the models:
1919
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/ui/src/Hexagon.elm", lines="67:67" %}{% endcodesnippet %}
2020

2121
We need a helper function to transform the string to an `Element` type. The function is going to format
22-
the text as well. The first argument of the function is the font size, the second argument the text
22+
the text as well. The first argument of the function is the font size, the second argument is the text
2323
string.
2424

2525
// makeTextBox
@@ -46,7 +46,7 @@ The value of the `message` box depends on the state of the game. It is either "G
4646
"Pause" or empty.
4747

4848
The `toForm` method turns an `Element` into a `Form` object. That way it can be modified later on.
49-
In our case it is moved to the correct position on the screen.
49+
In this case it is moved to the correct position on the screen.
5050

5151
// view
5252
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/ui/src/Hexagon.elm", lines="338:370" %}{% endcodesnippet %}

0 commit comments

Comments
 (0)