Skip to content

Commit

Permalink
Fix minor variable with misleading name in PR #3772 (#3776)
Browse files Browse the repository at this point in the history
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
  • Loading branch information
ajpotts and ajpotts authored Sep 18, 2024
1 parent ad0a720 commit 530f198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/registry/register_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ def unpack_scalar_arg(arg_name, arg_type):
return f"\tvar {arg_name} = {ARGS_FORMAL_NAME}['{arg_name}'].toScalar({arg_type});"


def unpack_scalar_arg_with_generic(arg_name, array_count):
def unpack_scalar_arg_with_generic(arg_name, scalar_count):
"""
Generate the code to unpack a scalar argument
'scalar_count' is used to generate unique names when
a procedure has multiple array-symbol formals
a procedure has multiple scalar-symbol formals
Example:
```
Expand All @@ -455,7 +455,7 @@ def unpack_scalar_arg_with_generic(arg_name, array_count):
Returns the chapel code, and the specifications for the
'dtype' and type-constructor arguments
"""
dtype_arg_name = "scalar_dtype_" + str(array_count)
dtype_arg_name = "scalar_dtype_" + str(scalar_count)
return (
unpack_scalar_arg(arg_name, dtype_arg_name),
[(dtype_arg_name, "type", None, None)],
Expand Down

0 comments on commit 530f198

Please sign in to comment.