From badaf8257e2a2312919d9b83b8b4aab0782d243c Mon Sep 17 00:00:00 2001 From: Misha Dynin Date: Thu, 16 Nov 2023 18:20:28 -0800 Subject: [PATCH 1/2] Update Triggering.lf to fix a typo Remove trailing '=' --- packages/documentation/code/c/src/Triggering.lf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/documentation/code/c/src/Triggering.lf b/packages/documentation/code/c/src/Triggering.lf index 35d9673af..3bbf629aa 100644 --- a/packages/documentation/code/c/src/Triggering.lf +++ b/packages/documentation/code/c/src/Triggering.lf @@ -2,7 +2,7 @@ target C reactor Inside { input x: int reaction(x) {= - printf("Received %d\n", x->value);= + printf("Received %d\n", x->value); =} } main reactor { @@ -10,4 +10,4 @@ main reactor { reaction(startup) -> i.x {= lf_set(i.x, 42); =} -} \ No newline at end of file +} From 8d0f1271361c8158089ed8bb03554c28d6102ce8 Mon Sep 17 00:00:00 2001 From: Misha Dynin Date: Thu, 16 Nov 2023 18:36:13 -0800 Subject: [PATCH 2/2] Update Triggering.lf to remove a trailing newline. --- packages/documentation/code/c/src/Triggering.lf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/code/c/src/Triggering.lf b/packages/documentation/code/c/src/Triggering.lf index 3bbf629aa..1b66e7564 100644 --- a/packages/documentation/code/c/src/Triggering.lf +++ b/packages/documentation/code/c/src/Triggering.lf @@ -10,4 +10,4 @@ main reactor { reaction(startup) -> i.x {= lf_set(i.x, 42); =} -} +} \ No newline at end of file