Skip to content

Commit

Permalink
Fix tutorial include for slf1_basic_example_let.signed.c
Browse files Browse the repository at this point in the history
  • Loading branch information
septract committed Feb 21, 2025
1 parent c9706ff commit df9edfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/getting-started/tutorials/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ We would like to verify this is safe, and that `doubled` returns twice the value

As in the first example, we need to ensure that `n+1` does not overflow and `n-1` does not underflow. Similarly `a+b` has to be representable at `int` type.

include\*example(solutions/slf1_basic_example_let.signed.c)
```c title="solutions/slf1_basic_example_let.signed.c"
--8<--
solutions/slf1_basic_example_let.signed.c
--8<--
```

<!-- TODO: BCP: WHy n*+n\_ in some places and n\*2i32 in others? -->
<!-- Dhruv: Unlikely to be meaningful, either is fine. -->
Expand Down
6 changes: 5 additions & 1 deletion src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ We would like to verify this is safe, and that `doubled` returns twice the value

As in the first example, we need to ensure that `n+1` does not overflow and `n-1` does not underflow. Similarly `a+b` has to be representable at `int` type.

include\*example(solutions/slf1_basic_example_let.signed.c)
```c title="solutions/slf1_basic_example_let.signed.c"
--8<--
solutions/slf1_basic_example_let.signed.c
--8<--
```

<!-- TODO: BCP: WHy n*+n\_ in some places and n\*2i32 in others? -->
<!-- Dhruv: Unlikely to be meaningful, either is fine. -->
Expand Down

0 comments on commit df9edfd

Please sign in to comment.