Skip to content

Commit

Permalink
ARROW-7481: [C#] fix typo
Browse files Browse the repository at this point in the history
This PR fixes typos in files under `csharp` directory

Closes #6109 from kiszk/ARROW-7481 and squashes the following commits:

15446f7 <Kazuaki Ishizaki> fix typo

Authored-by: Kazuaki Ishizaki <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kiszk authored and kou committed Dec 31, 2019
1 parent ba1800c commit c07d148
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions csharp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ PublishScripts/
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets

Expand Down Expand Up @@ -264,4 +264,4 @@ __pycache__/
artifacts/

# add .sln files back because they are ignored by the root .gitignore file
!*.sln
!*.sln
2 changes: 1 addition & 1 deletion csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Which will build the final/stable package.
NOTE: When building the officially released version, ensure that your `git` repository has the `origin` remote set to `https://github.com/apache/arrow.git`, which will ensure Source Link is set correctly. See https://github.com/dotnet/sourcelink/blob/master/docs/README.md for more information.

There are two output artifacts:
1. `Apache.Arrow.<version>.nupkg` - this contains the exectuable assemblies
1. `Apache.Arrow.<version>.nupkg` - this contains the executable assemblies
2. `Apache.Arrow.<version>.snupkg` - this contains the debug symbols files

Both of these artifacts can then be uploaded to https://www.nuget.org/packages/manage/upload.
Expand Down
4 changes: 2 additions & 2 deletions csharp/src/Apache.Arrow/Flatbuf/FlatBuffers/ByteBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static bool IsSupportedType<T>()
}

/// <summary>
/// Get the wire-size (in bytes) of an typed array
/// Get the wire-size (in bytes) of a typed array
/// </summary>
/// <typeparam name="T">The type of the array</typeparam>
/// <param name="x">The array to get the size of</param>
Expand Down Expand Up @@ -289,7 +289,7 @@ public MemoryStream ToMemoryStream(int pos, int len)
#endif

#if !UNSAFE_BYTEBUFFER
// Pre-allocated helper arrays for convertion.
// Pre-allocated helper arrays for conversion.
private float[] floathelper = new[] { 0.0f };
private int[] inthelper = new[] { 0 };
private double[] doublehelper = new[] { 0.0 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public VectorOffset CreateVectorOfTables<T>(Offset<T>[] offsets) where T : struc
return EndVector();
}

/// @cond FLATBUFFERS_INTENRAL
/// @cond FLATBUFFERS_INTERNAL
public void Nested(int obj)
{
// Structs are always stored inline, so need to be created right
Expand Down
8 changes: 4 additions & 4 deletions csharp/src/Apache.Arrow/Ipc/ArrowFileReaderImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ await ArrayPool<byte>.Shared.RentReturnAsync(4, async (buffer) =>

await ArrayPool<byte>.Shared.RentReturnAsync(footerLength, async (buffer) =>
{
long footerStartPostion = GetFooterLengthPosition() - footerLength;
long footerStartPosition = GetFooterLengthPosition() - footerLength;

BaseStream.Position = footerStartPostion;
BaseStream.Position = footerStartPosition;

int bytesRead = await BaseStream.ReadFullBufferAsync(buffer).ConfigureAwait(false);
EnsureFullRead(buffer, bytesRead);
Expand Down Expand Up @@ -105,9 +105,9 @@ protected override void ReadSchema()

ArrayPool<byte>.Shared.RentReturn(footerLength, (buffer) =>
{
long footerStartPostion = GetFooterLengthPosition() - footerLength;
long footerStartPosition = GetFooterLengthPosition() - footerLength;

BaseStream.Position = footerStartPostion;
BaseStream.Position = footerStartPosition;

int bytesRead = BaseStream.ReadFullBuffer(buffer);
EnsureFullRead(buffer, bytesRead);
Expand Down
6 changes: 3 additions & 3 deletions csharp/src/Apache.Arrow/Ipc/MessageSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ private static Types.IArrowType GetFieldArrowType(Flatbuf.Field field)
var intMetaData = field.Type<Flatbuf.Int>().Value;
return MessageSerializer.GetNumberType(intMetaData.BitWidth, intMetaData.IsSigned);
case Flatbuf.Type.FloatingPoint:
var floatingPointTypeMetadta = field.Type<Flatbuf.FloatingPoint>().Value;
switch (floatingPointTypeMetadta.Precision)
var floatingPointTypeMetadata = field.Type<Flatbuf.FloatingPoint>().Value;
switch (floatingPointTypeMetadata.Precision)
{
case Flatbuf.Precision.SINGLE:
return Types.FloatType.Default;
Expand Down Expand Up @@ -130,4 +130,4 @@ private static Types.IArrowType GetFieldArrowType(Flatbuf.Field field)
}
}
}
}
}

0 comments on commit c07d148

Please sign in to comment.