Skip to content

Commit

Permalink
Merge pull request #656 from dennorske/patch-1
Browse files Browse the repository at this point in the history
Fix typo (decoarated > decorated)
  • Loading branch information
Y-Less authored Oct 21, 2023
2 parents 554e3b3 + 741aae8 commit 08f84d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YSI_Visual/y_commands/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ YCMD:i(playerid, params[], help) = me;

## `@cmd()`

`YCMD:` looks like a tag, which has a meaning in pawn and shouldn't be used to declare special function types. Thus YSI is moving towards decorators, which are function-like prefixes to function names starting with `@`. You can always identify a decoarated function as `@decorator() function()`, as opposed to `Tag:function()` which is ambiguous. To declare a basic command use `@cmd()` (or `@command()`, they're synonyms):
`YCMD:` looks like a tag, which has a meaning in pawn and shouldn't be used to declare special function types. Thus YSI is moving towards decorators, which are function-like prefixes to function names starting with `@`. You can always identify a decorated function as `@decorator() function()`, as opposed to `Tag:function()` which is ambiguous. To declare a basic command use `@cmd()` (or `@command()`, they're synonyms):

```pawn
@cmd() jump(playerid, params[], help)
Expand Down

0 comments on commit 08f84d9

Please sign in to comment.