Skip to content

Commit c065e97

Browse files
authored
Remove unused comment and fix typo. (#8366)
* Update NativeObject.swift Correct the word. * Update ByteBuffer.swift Type parameter does not existing, remove it. * Update ByteBuffer.swift Correct the word.
1 parent 06b12d5 commit c065e97

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

swift/Sources/FlatBuffers/ByteBuffer.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public struct ByteBuffer {
100100

101101
/// The size of the elements written to the buffer + their paddings
102102
private var _writerSize: Int = 0
103-
/// Aliginment of the current memory being written to the buffer
103+
/// Alignment of the current memory being written to the buffer
104104
var alignment = 1
105105
/// Current Index which is being used to write to the buffer, it is written from the end to the start of the buffer
106106
var writerIndex: Int { _storage.capacity &- _writerSize }
@@ -474,7 +474,6 @@ public struct ByteBuffer {
474474
/// - Parameters:
475475
/// - index: index of the string in the buffer
476476
/// - count: length of the string
477-
/// - type: Encoding of the string
478477
@inline(__always)
479478
public func readString(
480479
at index: Int,

swift/Sources/FlatBuffers/NativeObject.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public protocol NativeObject {}
2323

2424
extension NativeObject {
2525

26-
/// Serialize is a helper function that serailizes the data from the Object API to a bytebuffer directly th
26+
/// Serialize is a helper function that serializes the data from the Object API to a bytebuffer directly th
2727
/// - Parameter type: Type of the Flatbuffer object
2828
/// - Returns: returns the encoded sized ByteBuffer
2929
public func serialize<T: ObjectAPIPacker>(type: T.Type) -> ByteBuffer
@@ -33,7 +33,7 @@ extension NativeObject {
3333
return serialize(builder: &builder, type: type.self)
3434
}
3535

36-
/// Serialize is a helper function that serailizes the data from the Object API to a bytebuffer directly.
36+
/// Serialize is a helper function that serializes the data from the Object API to a bytebuffer directly.
3737
///
3838
/// - Parameters:
3939
/// - builder: A FlatBufferBuilder

0 commit comments

Comments
 (0)