Fix comments

This commit is contained in:
Paul Pacheco 2020-09-28 21:02:53 -05:00
parent 4a710b2eea
commit 69161144a0

View File

@ -217,7 +217,7 @@ static MethodDefinition GenerateArraySegmentReadFunc(TypeReference variable)
MethodDefinition readerFunc = GenerateReaderFunction(variable);
// int lengh
// int length
readerFunc.Body.Variables.Add(new VariableDefinition(WeaverTypes.Import<int>()));
// T[] array
readerFunc.Body.Variables.Add(new VariableDefinition(elementType.MakeArrayType()));
@ -309,11 +309,11 @@ static MethodDefinition GenerateListReadFunc(TypeReference variable)
return readerFunc;
}
// int i
// int length
readerFunc.Body.Variables.Add(new VariableDefinition(WeaverTypes.Import<int>()));
// List<T> list;
readerFunc.Body.Variables.Add(new VariableDefinition(variable));
// int length
// int i
readerFunc.Body.Variables.Add(new VariableDefinition(WeaverTypes.Import<int>()));
ILProcessor worker = readerFunc.Body.GetILProcessor();