Add triple quotes to ffi.rst
commitc2b394003d67c2e249f95c5bbf3cbd1fd390e1e8
authorBrian McKenna <brian@brianmckenna.org>
dateThu 2 Oct 2014, 09:09 (12 years ago)
parent2bdbb3c
docs/source/ffi.rst+2−2
@@ -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) {
17+ """function pow(n) {
1818 return function(p) {
1919 return Math.pow(n, p);
2020 };
21− }" :: Number -> Number -> Number
21+ }""" :: Number -> Number -> Number
2222
2323Importing Types
2424---------------