Skip to content

Commit 380b1d4

Browse files
Tweaks to jsdoc strings for translation
These changes help the pxt gendocs tool pick up all strings.
1 parent 6989765 commit 380b1d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pxtextension.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ namespace mlrunner {
163163
* This custom version of the MakeCode onEvent function is needed due to:
164164
* https://github.com/microsoft/pxt-microbit/issues/5709
165165
*
166+
*
166167
* @param src The ID of the component to listen to.
167168
* @param value The event value to listen to from that component.
168169
* @param handler The function to call when the event is detected.
169-
* @param flags The specified event flags are ignored and configured via
170-
* pxt.json.
170+
* @param flags The specified event flags are ignored and configured via pxt.json.
171171
*/
172172
//%
173173
void customOnEvent(int src, int value, Action handler, int flags = 0) {

shims.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ declare namespace mlrunner {
77
* This custom version of the MakeCode onEvent function is needed due to:
88
* https://github.com/microsoft/pxt-microbit/issues/5709
99
*
10+
*
1011
* @param src The ID of the component to listen to.
1112
* @param value The event value to listen to from that component.
1213
* @param handler The function to call when the event is detected.
13-
* @param flags The specified event flags are ignored and configured via
14-
* pxt.json.
14+
* @param flags The specified event flags are ignored and configured via pxt.json.
1515
*/
1616
//% flags.defl=0 shim=mlrunner::customOnEvent
1717
function customOnEvent(src: int32, value: int32, handler: () => void, flags?: int32): void;

0 commit comments

Comments
 (0)