From 1b8e3c4abc11a2b2d8617f681f91dc77fa64663f Mon Sep 17 00:00:00 2001 From: James Frowen Date: Mon, 21 Aug 2023 18:39:36 +0100 Subject: [PATCH] style: fixing typos --- .../Extensions/Extensions.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs b/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs index 0b140c9422..596d712c32 100644 --- a/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs +++ b/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs @@ -303,20 +303,20 @@ public static T GetField(this CustomAttribute ca, string field, T defaultValu } /// - /// Imports a field and makes it a member of its orignal type. - /// This is needed if orignal type is a generic instance, this will ensure that it stays a member of that instance, eg MyMessage{int}.Value + /// Imports a field and makes it a member of its original type. + /// This is needed if original type is a generic instance, this will ensure that it stays a member of that instance, eg MyMessage{int}.Value /// /// /// - /// Type that the field orignal belonged to, NOT the resolved type + /// Type that the field original belonged to, NOT the resolved type /// - public static FieldReference ImportField(this ModuleDefinition module, FieldDefinition field, TypeReference orignalType) + public static FieldReference ImportField(this ModuleDefinition module, FieldDefinition field, TypeReference originalType) { - if (orignalType.Module != module) - orignalType = module.ImportReference(orignalType); + if (originalType.Module != module) + originalType = module.ImportReference(originalType); var fieldType = module.ImportReference(field.FieldType); - return new FieldReference(field.Name, fieldType, orignalType); + return new FieldReference(field.Name, fieldType, originalType); } ///