Skip to content

Commit

Permalink
fixed mixed up syntax between rs and ts targets
Browse files Browse the repository at this point in the history
  • Loading branch information
AneesHl committed Jul 20, 2024
1 parent ad04779 commit 45e1e42
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions docs/writing-reactors/multiports-and-banks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ In `Destination`, the reaction is triggered by `in`, not by some individual chan
c="if (in[i]->is_present) ..."
cpp="if (in[i]->is_present()) ..."
py="if port.is_present: ..."
rs="if (val) ..."
ts="if let Some(v) = ctx.get(&i) ..."
ts="if (val) ..."
rs="if let Some(v) = ctx.get(&i) ...
// Or using is_present()
if ctx.is_present(&inp[0]) ..."
/>
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ In `Destination`, the reaction is triggered by `in`, not by some individual chan
c="if (in[i]->is_present) ..."
cpp="if (in[i]->is_present()) ..."
py="if port.is_present: ..."
rs="if (val) ..."
ts="if let Some(v) = ctx.get(&i) ..."
ts="if (val) ..."
rs="if let Some(v) = ctx.get(&i) ...
// Or using is_present()
if ctx.is_present(&inp[0]) ..."
/>
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ In `Destination`, the reaction is triggered by `in`, not by some individual chan
c="if (in[i]->is_present) ..."
cpp="if (in[i]->is_present()) ..."
py="if port.is_present: ..."
rs="if (val) ..."
ts="if let Some(v) = ctx.get(&i) ..."
ts="if (val) ..."
rs="if let Some(v) = ctx.get(&i) ...
// Or using is_present()
if ctx.is_present(&inp[0]) ..."
/>
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ In `Destination`, the reaction is triggered by `in`, not by some individual chan
c="if (in[i]->is_present) ..."
cpp="if (in[i]->is_present()) ..."
py="if port.is_present: ..."
rs="if (val) ..."
ts="if let Some(v) = ctx.get(&i) ..."
ts="if (val) ..."
rs="if let Some(v) = ctx.get(&i) ...
// Or using is_present()
if ctx.is_present(&inp[0]) ..."
/>
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ In `Destination`, the reaction is triggered by `in`, not by some individual chan
c="if (in[i]->is_present) ..."
cpp="if (in[i]->is_present()) ..."
py="if port.is_present: ..."
rs="if (val) ..."
ts="if let Some(v) = ctx.get(&i) ..."
ts="if (val) ..."
rs="if let Some(v) = ctx.get(&i) ...
// Or using is_present()
if ctx.is_present(&inp[0]) ..."
/>
:::

Expand Down

0 comments on commit 45e1e42

Please sign in to comment.