Skip to content

Commit

Permalink
builtins: update description of format_int to say it rounds down
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <anders@eknert.com>
  • Loading branch information
anderseknert committed Sep 7, 2022
1 parent b5cbbb5 commit 3ed3643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ast/builtins.go
Expand Up @@ -1021,7 +1021,7 @@ var Concat = &Builtin{

var FormatInt = &Builtin{
Name: "format_int",
Description: "Returns the string representation of the number in the given base after converting it to an integer value.",
Description: "Returns the string representation of the number in the given base after rounding it down to an integer value.",
Decl: types.NewFunction(
types.Args(
types.Named("number", types.N).Description("number to format"),
Expand Down
2 changes: 1 addition & 1 deletion builtin_metadata.json
Expand Up @@ -3718,7 +3718,7 @@
"v0.43.0",
"edge"
],
"description": "Returns the string representation of the number in the given base after converting it to an integer value.",
"description": "Returns the string representation of the number in the given base after rounding it down to an integer value.",
"introduced": "v0.17.0",
"result": {
"description": "formatted number",
Expand Down

0 comments on commit 3ed3643

Please sign in to comment.