Skip to content

Commit

Permalink
Use collection expression
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-zk committed Oct 18, 2024
1 parent 93f5aa0 commit b03a665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TruckLib.Core/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public struct Token : IBinarySerializable
/// The character set of this type.
/// </summary>
public static readonly char[] CharacterSet =
{
[
'\0', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b',
'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '_'
};
];

private static readonly int CharsetLength = CharacterSet.Length; // =38

Expand Down

0 comments on commit b03a665

Please sign in to comment.