Fix a nameof() using wrong variable in GeneratedVariableIdentifier

This commit is contained in:
UnknownShadow200 2017-06-12 09:10:09 +10:00 committed by GitHub
parent f8ac2565fa
commit 45d032da52

View file

@ -40,7 +40,7 @@ namespace OpenTK.Rewrite
if (definition == null)
{
throw new ArgumentException("The definition argument cannot be null.", nameof(body));
throw new ArgumentException("The definition argument cannot be null.", nameof(definition));
}
if (string.IsNullOrEmpty(name))
@ -53,4 +53,4 @@ namespace OpenTK.Rewrite
this.Name = name;
}
}
}
}