diff --git a/docs/config/events.md b/docs/config/events.md index ea740807..e63e9bf1 100644 --- a/docs/config/events.md +++ b/docs/config/events.md @@ -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: - \ No newline at end of file + diff --git a/docs/config/functions.md b/docs/config/functions.md index 0ede5595..1b9132c5 100644 --- a/docs/config/functions.md +++ b/docs/config/functions.md @@ -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) @@ -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: - + ### `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: - +