We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In semver.compare(), found docs typo and I think the following is correct. 1 if b > a; → 1 if a > b; Ref: https://www.openpolicyagent.org/docs/latest/policy-reference/#semver
semver.compare()
1 if b > a;
1 if a > b;
Returns: result (number) -1 if a < b; 1 if b > a; 0 if a == b
The text was updated successfully, but these errors were encountered:
Thanks, good catch. It's defined here:
opa/ast/builtins.go
Line 2751 in 39fa5cf
Sorry, something went wrong.
Fix typo in semver.compare docs
3f75fd6
Fixes open-policy-agent#5012 Signed-off-by: Anders Eknert <anders@eknert.com>
docs/builtins: fix typo in semver.compare (#5059)
33f058d
Fixes #5012. Signed-off-by: Anders Eknert <anders@eknert.com>
Successfully merging a pull request may close this issue.
Short description
In
semver.compare()
, found docs typo and I think the following is correct.→1 if b > a;
1 if a > b;
Ref: https://www.openpolicyagent.org/docs/latest/policy-reference/#semver
The text was updated successfully, but these errors were encountered: