Fix a nameof() using wrong variable in GeneratedVariableIdentifier
authorUnknownShadow200 <unknownshadow200@gmail.com>
Sun, 11 Jun 2017 23:10:09 +0000 (09:10 +1000)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2017 23:10:09 +0000 (09:10 +1000)
src/Generator.Rewrite/GeneratedVariableIdentifier.cs

index ec3389e..f8bbe33 100644 (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;
         }
     }
-}
\ No newline at end of file
+}