8000 Update assets/content/cookbook/Macros/strictly-typed-json.md · HaxeFoundation/code-cookbook@07e5e08 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07e5e08

Browse files
haxiomicAurel300
andauthored
Update assets/content/cookbook/Macros/strictly-typed-json.md
Co-authored-by: Aurel <Aurel300@users.noreply.github.com>
1 parent 281dc80 commit 07e5e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/content/cookbook/Macros/strictly-typed-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Instead, if you load the JSON in a macro, then the JSON data will be available a
1515

1616
Create a file called **JsonMacro.hx** (or whatever you like) and add this:
1717
```haxe
18-
macro function load(path: String) {
18+
macro function load(path:String) {
1919
return try {
2020
var json = haxe.Json.parse(sys.io.File.getContent(path));
2121
macro $v{json};

0 commit comments

Comments
 (0)
0