Skip to content

Commit

Permalink
Fix typos in debug.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dstockto authored and loziniak committed Nov 17, 2023
1 parent a183da3 commit 32d3e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/shared/.docs/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ All output from your Red script is visible in console, when running every test.
print ["x =" x]
```

Also, `probe` function is very useful. When evaluated, it evaluates it's input, prints the result in a way that reflects it's type, and returns it. So it's in most cases "transparent", and you can insert it inside expressions:
Also, `probe` function is very useful. When evaluated, it evaluates its input, prints the result in a way that reflects its type, and returns it. So it's in most cases "transparent", and you can insert it inside expressions:

```red
x: 10
y: probe x + 5
```

Sometimes function called `type?` (yes, it has question mark in it's name!) can be useful to check value's type:
Sometimes function called `type?` (yes, it has question mark in its name!) can be useful to check value's type:

```red
print ["x type:" type? x]
Expand Down

0 comments on commit 32d3e83

Please sign in to comment.