Skip to content

Commit 372df59

Browse files
Corrected spelling
1 parent 9b5411c commit 372df59

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

LLama.Jinja/Context.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ private static Value CreateValue(object? value)
781781
return Value.Null;
782782
}
783783
else if (IsKeyValueEnumerable(value))
784-
// This handles e.g. IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> and similar by treating them as enumerables of key-value pairs and turning them into object properties.
784+
// This handles e.g. IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> and similar by treating them as enumerable of key-value pairs and turning them into object properties.
785785
return CreateValueFromKeyValuePairEnumeration((System.Collections.IEnumerable)value);
786786
else if (value is Array array)
787787
if (IsKeyValuePairType(array.GetType().GetElementType()))

LLama.Jinja/OrderedDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LLamaSharp.Jinja;
55

66
/// <summary>
77
/// Represents a collection of key/value pairs that are accessible by the key or index.
8-
/// A "real" ordered dictionary has been impemented in .NET 9 and later. This is a simplified implementation good enough for .NET 8.
8+
/// A "real" ordered dictionary has been implemented in .NET 9 and later. This is a simplified implementation good enough for .NET 8.
99
/// </summary>
1010
/// <typeparam name="TKey"></typeparam>
1111
/// <typeparam name="TValue"></typeparam>

LLama.Jinja/Tokenizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ private CallExpr CallFunc(string name, ArgumentsExpression args)
607607
}
608608
else if (PeekSymbols(["("]))
609609
{
610-
var callParamers = ParseCallArgs();
611-
value = new CallExpr(Location, value!, callParamers);
610+
var callParameters = ParseCallArgs();
611+
value = new CallExpr(Location, value!, callParameters);
612612
}
613613
ConsumeSpaces();
614614
}

LLama.Jinja/Value.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Value(Value value)
7070
public bool IsDouble => _primitive is double;
7171
public bool IsPrimitive => _object is null && _array is null && _callable is null;
7272

73-
#region iteratable support
73+
#region iterable support
7474
public bool IsIterable => IsArray || IsObject || IsString;
7575

7676
[MemberNotNullWhen(true, nameof(_array))]
@@ -566,7 +566,7 @@ public int CompareTo(Value? other)
566566
return new Value(left.Get<long>() - right.Get<long>());
567567
if (left.IsDouble && right.IsDouble)
568568
return new Value(left.Get<double>() - right.Get<double>());
569-
throw new JinjaException($"Cannot substract values: {left.Dump()} - {right.Dump()}");
569+
throw new JinjaException($"Cannot subtract values: {left.Dump()} - {right.Dump()}");
570570
}
571571

572572
public static Value operator *(Value left, Value right)

0 commit comments

Comments
 (0)