Skip to content

Commit b39f1bf

Browse files
committed
Fix destroy typo and update dependency
1 parent 2e7ac93 commit b39f1bf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/OpenGraph/Runtime/TupleType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ extension UnsafeMutableTuple {
9393
}
9494

9595
public func deinitialize() {
96-
type.destory(value)
96+
type.destroy(value)
9797
}
9898

9999
public func deinitialize(at index: Int) {
100-
type.destory(value, at: index)
100+
type.destroy(value, at: index)
101101
}
102102

103103
public func deallocate(initialized: Bool) {

Sources/OpenGraph_SPI/Runtime/OGTupleType.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,14 @@ void *OGTupleGetElement(OGTupleType tuple_type, void* tuple_value, size_t index,
206206
#endif
207207
}
208208

209-
void OGTupleDestory(OGTupleType tuple_type, void *value) {
209+
void OGTupleDestroy(OGTupleType tuple_type, void *value) {
210210
#ifdef OPENGRAPH_SWIFT_TOOLCHAIN_SUPPORTED
211211
auto metadata = reinterpret_cast<OG::swift::metadata const*>(tuple_type);
212212
metadata->vw_destroy(reinterpret_cast<swift::OpaqueValue *>(value));
213213
#endif
214214
}
215215

216-
void OGTupleDestoryElement(OGTupleType tuple_type, void *value, size_t index) {
216+
void OGTupleDestroyElement(OGTupleType tuple_type, void *value, size_t index) {
217217
#ifdef OPENGRAPH_SWIFT_TOOLCHAIN_SUPPORTED
218218
auto metadata = reinterpret_cast<OG::swift::metadata const*>(tuple_type);
219219
if (metadata->getKind() != swift::MetadataKind::Tuple) {

Sources/OpenGraph_SPI/Runtime/OGTupleType.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ void *OGTupleGetElement(OGTupleType tuple_type, void* tuple_value, size_t index,
7272

7373
OG_EXPORT
7474
OG_REFINED_FOR_SWIFT
75-
void OGTupleDestory(OGTupleType tuple_type, void *buffer) OG_SWIFT_NAME(TupleType.destory(self:_:));
75+
void OGTupleDestroy(OGTupleType tuple_type, void *buffer) OG_SWIFT_NAME(TupleType.destroy(self:_:));
7676

7777
OG_EXPORT
7878
OG_REFINED_FOR_SWIFT
79-
void OGTupleDestoryElement(OGTupleType tuple_type, void *buffer, size_t index) OG_SWIFT_NAME(TupleType.destory(self:_:at:));
79+
void OGTupleDestroyElement(OGTupleType tuple_type, void *buffer, size_t index) OG_SWIFT_NAME(TupleType.destroy(self:_:at:));
8080

8181
OG_EXPORT
8282
OG_REFINED_FOR_SWIFT

0 commit comments

Comments
 (0)