From da4170572829d60d216c718d4443f0ed31ecdf02 Mon Sep 17 00:00:00 2001 From: Christopher Swiedler Date: Thu, 11 Feb 2021 12:00:32 -0800 Subject: [PATCH] Fix up image paths for GH pages --- docs/_pages/getting-started.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_pages/getting-started.md b/docs/_pages/getting-started.md index 095cc2ab..f1cc8020 100644 --- a/docs/_pages/getting-started.md +++ b/docs/_pages/getting-started.md @@ -11,7 +11,7 @@ To get started with Luau you need to install Roblox Studio, which you can downlo If you just want to experiment with the language itself, you can create a simple baseplate game.
- +
## Creating a script @@ -19,7 +19,7 @@ If you just want to experiment with the language itself, you can create a simple To create your own testing script, go to ServerScriptService in the explorer tree and add a Script object.
- +
Double-click on the script object and paste this: @@ -67,8 +67,8 @@ print(isfoo(1)) Note that the editor now highlights the incorrect calls to ``ispositive()`` and ``isfoo()``.
- - + +
## Annotations @@ -107,7 +107,7 @@ result = ispositive(1) Oops -- we're returning string values, but we forgot to update the function return type. Since ``print()`` accepts anything, the call to ``ispositive()`` is still valid. But because the annotation doesn't match our code, we get a warning in the function body itself:
- +
And then of course, the fix is simple; just change the annotation to declare the return type as a string. @@ -130,7 +130,7 @@ result = ispositive(1) Well, almost - we also declared result as a boolean, and now that's clearly wrong.
- +
So now we update the type of the local variable, and everything is good.