Skip to content

Commit

Permalink
Merge pull request #125 from Deleh/fix/typo
Browse files Browse the repository at this point in the history
Correct Method Typo
  • Loading branch information
hoffmann-stefan authored Dec 6, 2023
2 parents ac35e40 + 6652612 commit 40adb43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions rcldotnet/MessageStaticMemberCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ static MessageStaticMemberCache()

public static IntPtr GetTypeSupport()
{
// mehtod because it could throw.
// method because it could throw.
if (s_typeSupport == IntPtr.Zero)
{
throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __GetTypeSupport mehtod.");
throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __GetTypeSupport method.");
}

return s_typeSupport;
Expand All @@ -83,7 +83,7 @@ public static SafeHandle CreateMessageHandle()
}
else
{
throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __CreateMessageHandle mehtod.");
throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __CreateMessageHandle method.");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions rcldotnet/ServiceDefinitionStaticMemberCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ static ServiceDefinitionStaticMemberCache()

public static IntPtr GetTypeSupport()
{
// mehtod because it could throw.
// method because it could throw.
if (s_typeSupport == IntPtr.Zero)
{
throw new InvalidOperationException($"Type '{typeof(TService).FullName}' did not define a correct __GetTypeSupport mehtod.");
throw new InvalidOperationException($"Type '{typeof(TService).FullName}' did not define a correct __GetTypeSupport method.");
}

return s_typeSupport;
Expand Down

0 comments on commit 40adb43

Please sign in to comment.