10000 Fix typo · pythonnet/pythonnet@64a6909 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64a6909

Browse files
danabrlostmsu
authored andcommitted
Fix typo
1 parent 21f11db commit 64a6909

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/slots/mp_length.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static MethodInfo Method
2626
}
2727
}
2828

29-
public static bool CanAssgin(Type clrType)
29+
public static bool CanAssign(Type clrType)
3030
{
3131
if (typeof(ICollection).IsAssignableFrom(clrType))
3232
{

src/runtime/typemanager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ internal static IntPtr CreateType(ManagedType impl, Type clrType)
225225
InitializeSlots(type, impl.GetType(), slotsHolder);
226226

227227
if (Marshal.ReadIntPtr(type, TypeOffset.mp_length) == IntPtr.Zero
228-
&& mp_length_slot.CanAssgin(clrType))
228+
&& mp_length_slot.CanAssign(clrType))
229229
{
230230
InitializeSlot(type, TypeOffset.mp_length, mp_length_slot.Method, slotsHolder);
231231
}

0 commit comments

Comments
 (0)
0