Update ffi.rst
We can get rid of the \ stuff now, right?
commit2bdbb3c083b29ec6ae91060b5d123faaeb7cd014
authorBrian McKenna <brian@brianmckenna.org>
dateWed 1 Oct 2014, 20:10 (12 years ago)
parent09b8b3d
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---------------