You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/modules/1-getting-started/5-faq.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ A `tab` on the other hand is more formally defined as an _optional_ user interfa
33
33
An example of an implementation of this is from the `pix_n_flix` module. The implementation can be found [here](https://github.com/source-academy/modules/blob/master/src/bundles/pix_n_flix/index.ts). In the module, a function `init()` is provided to the Source programmer. The specifications of the `pix_n_flix` module requires this `init()` function to be applied as the last statement of the Source program. As a result, the `js-slang` evaluator will return the return value of the `init()` function which is a JavaScript object with the type signature shown below.
Copy file name to clipboardExpand all lines: docs/src/modules/2-bundle/4-conventions/2-abstractions.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ curve => {
49
49
drawnCurves.push(curveDrawn);
50
50
}
51
51
return curveDrawn;
52
-
}
52
+
};
53
53
```
54
54
55
55
This exposes implementation details to the cadet and "breaks" the `RenderFunction` abstraction. Thus, there is a need for such objects to be able to override the default `toString`
@@ -79,6 +79,7 @@ but if your circumstances can't support it you can refer to the second method wh
79
79
>
80
80
> ```ts
81
81
>import { show } from'rune';
82
+
>
82
83
>display(show);
83
84
>```
84
85
>
@@ -127,7 +128,7 @@ Referring back to the `curve` bundle's `RenderFunction`s, the type `RenderFuncti
0 commit comments