mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 15:10:02 +00:00
Fixes spelling mistake in the word position (#8330)
This commit is contained in:
@@ -21,7 +21,7 @@ public protocol Mutable {
|
||||
/// makes Flatbuffer accessed within the Protocol
|
||||
var bb: ByteBuffer { get }
|
||||
/// makes position of the ``Table``/``Struct`` accessed within the Protocol
|
||||
var postion: Int32 { get }
|
||||
var position: Int32 { get }
|
||||
}
|
||||
|
||||
extension Mutable {
|
||||
@@ -45,7 +45,7 @@ extension Mutable where Self == Table {
|
||||
/// - index: index of the Element
|
||||
public func mutate<T: Scalar>(_ value: T, index: Int32) -> Bool {
|
||||
guard index != 0 else { return false }
|
||||
return mutate(value: value, o: index + postion)
|
||||
return mutate(value: value, o: index + position)
|
||||
}
|
||||
|
||||
/// Directly mutates the element by calling mutate
|
||||
@@ -66,7 +66,7 @@ extension Mutable where Self == Struct {
|
||||
/// - value: New value to be inserted to the buffer
|
||||
/// - index: index of the Element
|
||||
public func mutate<T: Scalar>(_ value: T, index: Int32) -> Bool {
|
||||
mutate(value: value, o: index + postion)
|
||||
mutate(value: value, o: index + position)
|
||||
}
|
||||
|
||||
/// Directly mutates the element by calling mutate
|
||||
|
||||
Reference in New Issue
Block a user