Skip to content

Commit

Permalink
Update docs/scripting/functions/format.md
Browse files Browse the repository at this point in the history
Co-authored-by: Narcis B. <leonardssh22@gmail.com>
  • Loading branch information
adib-yg and leonardssh authored Nov 29, 2023
1 parent 8a7ca54 commit c56333f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/scripting/functions/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ You may optionally put a number between the `%` and the letter of the placeholde
```c
new result[128];
new number = 42;
format(result, sizeof(result), "The number is %i.", number);
// The number is 42.
format(result, sizeof(result), "The number is %i.", number); // The number is 42.

new string[] = "simple message";
format(result, sizeof(result), "This is a %s containing the number %i.", string, number);
Expand Down

0 comments on commit c56333f

Please sign in to comment.