Skip to content

Commit

Permalink
Remove mention of tuples in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nezuo committed Nov 24, 2024
1 parent 769b1e8 commit f7a346d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/config/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ Use synchronous events with extreme caution.
This field determines the data that is sent with the event. It can be any [Zap type](./types.md).

- If the event does not require any data, the `data` field should be excluded.
- You can pass multiple arguments to the event by using a tuple:
- You can pass multiple arguments to the event by separating each type with a comma and wrapping them all in parentheses:

<CodeBlock :code="dataExample" />
<CodeBlock :code="dataExample" />
10 changes: 5 additions & 5 deletions docs/config/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const example = `funct Test = {
rets: enum { Success, Fail }
}`

const tupleExample = `funct Tuples = {
const multiArgsRetsExample = `funct MultipleArgsRets = {
call: Async,
args: (boolean, u8),
rets: (boolean, string)
Expand Down Expand Up @@ -48,15 +48,15 @@ Use synchronous functions with extreme caution.
This field determines the data that is sent to the server. It can be any [Zap type](./types.md).

- If the client doesn't send any data, the `args` field should be excluded.
- You can pass multiple arguments to the function by using a tuple:
- You can pass multiple arguments to the function by separating each type with a comma and wrapping them all in parentheses:

<CodeBlock :code="tupleExample" />
<CodeBlock :code="multiArgsRetsExample" />

### `rets`

This field determines the data that is sent back to the client from the server. It can be any [Zap type](./types.md).

- If the server doesn't return any data, the `rets` field should be excluded.
- The function can return multiple values by using a tuple:
- The function can return multiple values by separating each type with a comma and wrapping them all in parentheses:

<CodeBlock :code="tupleExample" />
<CodeBlock :code="multiArgsRetsExample" />

0 comments on commit f7a346d

Please sign in to comment.