Skip to content

Commit acc201c

Browse files
committed
Fix compile errors in some code examples
1 parent eac8a62 commit acc201c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/com/laytonsmith/core/functions/Easings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ public ExampleScript[] examples() throws ConfigCompileException {
201201
new ExampleScript("Usage with a LINEAR interpolation.", "@start = array(x: 0, y: 0, z: 0);\n"
202202
+ "@finish = array(x: 0, y: 100, z: 0);\n"
203203
+ "for(@i = 0, @i <= 1, @i += 0.1) {\n"
204-
+ "\tmsg(ease_between_loc(@start, @finish, 'LINEAR', @i);\n"
204+
+ "\tmsg(ease_between_loc(@start, @finish, 'LINEAR', @i));\n"
205205
+ "}"),
206206
new ExampleScript("Usage with a EASE_IN_CUBIC interpolation.", "@start = array(x: 0, y: 0, z: 0);\n"
207207
+ "@finish = array(x: 0, y: 100, z: 0);\n"
208208
+ "for(@i = 0, @i <= 1, @i += 0.1) {\n"
209-
+ "\tmsg(ease_between_loc(@start, @finish, 'EASE_IN_CUBIC', @i);\n"
209+
+ "\tmsg(ease_between_loc(@start, @finish, 'EASE_IN_CUBIC', @i));\n"
210210
+ "}")
211211
};
212212
}

src/main/java/com/laytonsmith/core/functions/ItemMeta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public ExampleScript[] examples() throws ConfigCompileException {
246246
new ExampleScript("Demonstrates a player head", "set_itemmeta(103, array(owneruuid: puuid()))",
247247
"This puts your skin on the player head you are wearing"),
248248
new ExampleScript("Demonstrates making a custom potion",
249-
"set_itemmeta(5, array(display: Potion of Frog Leaping, potions: array(speed: array(strength: 4,"
249+
"set_itemmeta(5, array(display: 'Potion of Frog Leaping', potions: array(speed: array(strength: 4,"
250250
+ " seconds: 90, ambient: true, particles: false, icon: true))))",
251251
"Turns the potion in slot 5 into a Potion of Leaping V with no potion particles."),
252252
new ExampleScript("Demonstrates hiding a potion effect",

src/main/java/com/laytonsmith/core/functions/Threading.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public ExampleScript[] examples() throws ConfigCompileException {
697697
+ "// Main thread\n"
698698
+ "sleep(1); // Simulate other main thread activity\n"
699699
+ "// Note that if we used synchronized() here, this call would block the main thread\n"
700-
+ "// for 10 seconds, while the off thread performed its activities."
700+
+ "// for 10 seconds, while the off thread performed its activities.\n"
701701
+ "x_get_lock('lock', closure() {\n"
702702
+ "\tmsg('Main thread activity');\n"
703703
+ "});\n",

0 commit comments

Comments
 (0)