Skip to content

Commit 298bc75

Browse files
authored
リファクタリング (#62)
* リファクタリング * Update IReadOnlyUtf8ArrayDictionary.cs * Update IUtf8ArrayDictionary.cs
1 parent 301feb5 commit 298bc75

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Source/Utf8Utility/IReadOnlyUtf8ArrayDictionary.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Utf8Utility;
44

55
/// <summary>
6-
/// UTF-8文字列用の読み取り専用Dictionary
6+
/// UTF-8配列用の読み取り専用Dictionary
77
/// </summary>
88
/// <typeparam name="TValue">Dictionary内部の値の型</typeparam>
99
[SuppressMessage("Naming", "CA1711:識別子は、不適切なサフィックスを含むことはできません", Justification = "Dictionary")]

Source/Utf8Utility/IUtf8ArrayDictionary.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Utf8Utility;
44

55
/// <summary>
6-
/// UTF-8文字列用のDictionary
6+
/// UTF-8配列用のDictionary
77
/// </summary>
88
/// <typeparam name="TValue">Dictionary内部の値の型</typeparam>
99
[SuppressMessage("Naming", "CA1711:識別子は、不適切なサフィックスを含むことはできません", Justification = "Dictionary")]

Source/Utf8Utility/Utf8Array.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace Utf8Utility;
88
/// </summary>
99
public readonly struct Utf8Array
1010
#if NET6_0_OR_GREATER
11-
: IEquatable<Utf8Array>, ISpanFormattable
11+
: IEquatable<Utf8Array>, ISpanFormattable
1212
#else
13-
: IEquatable<Utf8Array>, IFormattable
13+
: IEquatable<Utf8Array>, IFormattable
1414
#endif
1515
{
1616
readonly byte[] _value;
@@ -36,10 +36,10 @@ public readonly struct Utf8Array
3636
public static Utf8Array Empty { get; }
3737

3838
/// <summary>
39-
/// UTF-8バイト数を取得します
39+
/// バイト数を取得します
4040
/// </summary>
4141
/// <value>
42-
/// UTF-8バイト数
42+
/// バイト数
4343
/// </value>
4444
public int Length => _value.Length;
4545

Source/Utf8Utility/Utf8ArrayDictionary.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public bool TryAdd(Utf8Array key, TValue value)
7171

7272
do
7373
{
74-
// 境界チェック削除のためにdo-while文の必要がある
74+
// 境界チェック削除のためにdo-while文にする必要がある
7575
// https://github.com/dotnet/runtime/issues/9422
7676
if ((uint)i >= (uint)entries.Length)
7777
{
@@ -199,7 +199,7 @@ public ref TValue GetValueRefOrNullRef(ReadOnlySpan<byte> key)
199199

200200
do
201201
{
202-
// 境界チェック削除のためにdo-while文の必要がある
202+
// 境界チェック削除のためにdo-while文にする必要がある
203203
// https://github.com/dotnet/runtime/issues/9422
204204
if ((uint)i >= (uint)entries.Length)
205205
{

0 commit comments

Comments
 (0)