Skip to content

Commit

Permalink
Merge pull request #3095 from stefanlatinovic/patch-4
Browse files Browse the repository at this point in the history
chore: typo fix in `2.4-intro-candid.mdx`
  • Loading branch information
jessiemongeon1 authored Jun 19, 2024
2 parents 8366009 + 6da1bd9 commit bcd91e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/developer-journey/level-2/2.4-intro-candid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ This service might be upgraded in the following manner:
type timestamp = nat; // Define a new type of 'timestamp'
service counter : {
set : (nat) -> (); // Define a new method
add : (int) -> (new_val : nat); // Change the parameter result types
subtract : (nat, trap_on_underflow : opt bool) -> (new_val : nat); // Change the parameter result types
add : (int) -> (new_val : nat); // Change the parameter and result types
subtract : (nat, trap_on_underflow : opt bool) -> (new_val : nat); // Change the parameter and result types
get : () -> (nat, last_change : timestamp) query; // Change the result types
}
```
Expand Down Expand Up @@ -357,7 +357,7 @@ In this output, you can see the URL for the Candid interface under 'Backend cani

![Candid UI 1](../_attachments/candid_ui-1.png)

Let's use the same workflow you used on the command-line. First, let's add 12 to the counter by entering '12' into the 'add' method, then selecting 'call'. The output log on the left will reflect this call.
Let's use the same workflow you used on the command-line. First, let's add 12 to the counter by entering '12' into the 'add' method, then selecting 'call'. The output log on the right will reflect this call.

![Candid UI 2](../_attachments/candid_ui-2.png)

Expand Down

0 comments on commit bcd91e9

Please sign in to comment.