Skip to content

Commit f59ce91

Browse files
committed
rename constant to pascal case
1 parent 124bb55 commit f59ce91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/Discord.Net.Dave/Utils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class Utils
1111
/// <summary>
1212
/// The max size in bytes of a c-string for a snowflake identifier.
1313
/// </summary>
14-
public const int SNOWFLAKE_MAX_CSTRING_LENGTH = 21;
14+
public const int SnowflakeMaxCStringLength = 21;
1515

1616
/// <summary>
1717
/// Converts a snowflake to a C string.
@@ -22,8 +22,8 @@ internal static class Utils
2222
/// <exception cref="InvalidOperationException">The ID couldn't be formatted.</exception>
2323
public static unsafe AllocHandle ToCString(ulong id, out ReadOnlySpan<CChar> str)
2424
{
25-
var ptr = (CChar*)NativeMemory.Alloc(SNOWFLAKE_MAX_CSTRING_LENGTH);
26-
var span = new Span<byte>(ptr, SNOWFLAKE_MAX_CSTRING_LENGTH);
25+
var ptr = (CChar*)NativeMemory.Alloc(SnowflakeMaxCStringLength);
26+
var span = new Span<byte>(ptr, SnowflakeMaxCStringLength);
2727

2828
if (!id.TryFormat(span, out var sz))
2929
throw new InvalidOperationException();

0 commit comments

Comments
 (0)