Fix inverted conditionals for version check

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-06 14:50:10 +07:00
parent 204b21f4fb
commit ca342fd840
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ module Action = struct
| "project_root" when syntax_version >= (1, 0) ->
Some (path_exp (Scope.root scope))
| "@" ->
if syntax_version >= (1, 0) then
if syntax_version < (1, 0) then
targets loc var_name
else
Loc.fail loc (* variable substitution to avoid ugly escaping *)