Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Jul 25, 2018
1 parent e4494c8 commit bf3ebb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Harmony/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public enum MethodType
StaticConstructor
}

[Obsolete("This enum will be remove in the next major version. To define special methods, use MethodType")]
[Obsolete("This enum will be removed in the next major version. To define special methods, use MethodType")]
public enum PropertyMethod
{
Getter,
Expand Down Expand Up @@ -132,14 +132,14 @@ public HarmonyPatch(Type declaringType, string propertyName, MethodType methodTy

//

[Obsolete("This attribute will be remove in the next major version. Use HarmonyPatch together with MethodType.Getter or MethodType.Setter instead")]
[Obsolete("This attribute will be removed in the next major version. Use HarmonyPatch together with MethodType.Getter or MethodType.Setter instead")]
public HarmonyPatch(string propertyName, PropertyMethod type)
{
info.methodName = propertyName;
info.methodType = type == PropertyMethod.Getter ? MethodType.Getter : MethodType.Setter;
}

[Obsolete("This attribute will be remove in the next major version. Use a combination of the other attributes instead")]
[Obsolete("This attribute will be removed in the next major version. Use a combination of the other attributes instead")]
public HarmonyPatch(Type declaringType, Type[] argumentTypes)
{
info.declaringType = declaringType;
Expand Down

0 comments on commit bf3ebb4

Please sign in to comment.