git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #621 from puffnfresh/patch-3

Update ffi.rst

commit849de07d26f2050848c885c3a1d91e09d472ac78 authorPhil Freeman <paf31@cantab.net> dateThu 2 Oct 2014, 09:31 (12 years ago) parent09b8b3dc2b3940
1 file changed+5−5
docs/source/ffi.rst+5−5
docs/source/ffi.rst+5−5
@@ -14,11 +14,11 @@ Inline Javascript
1414A foreign import declaration may optionally contain its definition in Javascript as a string literal. If this is provided, the string will be inserted directly into the generated Javascript before the current module definition::
1515
1616 foreign import pow
17− "function pow(n) {\
18− \ return function(p) {\
19− \ return Math.pow(n, p);\
20− \ };\
21− \}" :: Number -> Number -> Number
17+ """function pow(n) {
18+ return function(p) {
19+ return Math.pow(n, p);
20+ };
21+ }""" :: Number -> Number -> Number
2222
2323Importing Types
2424---------------