Skip to content

Commit 72255ee

Browse files
authored
🔀 Fix external imports in docs (#379)
The other example had the right path, but these two were missing the prefix.
1 parent 7234b84 commit 72255ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/guide/03-side-effects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn read(key: String, to_msg: fn(Result(String, Nil)) -> msg) -> Effect(msg) {
159159
})
160160
}
161161
162-
@external(javascript, "ffi.mjs", "read")
162+
@external(javascript, "./ffi.mjs", "read")
163163
fn do_read(key: String) -> Result(String, Nil) {
164164
Error(Nil)
165165
}
@@ -227,7 +227,7 @@ fn write(key: String, value: String) -> Effect(msg) {
227227
})
228228
}
229229
230-
@external(javascript, "ffi.mjs", "write")
230+
@external(javascript, "./ffi.mjs", "write")
231231
fn do_write(key: String, value: String) -> Nil {
232232
Nil
233233
}

0 commit comments

Comments
 (0)