summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 1736aefbf87..5f3959e61f5 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -525,7 +525,7 @@ Gen::TypesVisitor::visitSequence(const SequencePtr& p)
const string optionalFormat = getUnqualified(getOptionalFormat(p->type()), swiftModule);
out << sp;
- out << nl << "public struct _" << name << "Helper";
+ out << nl << "public struct " << name << "Helper";
out << sb;
out << nl << "public static func read(from istr: " << istr << ") throws -> " << name;
@@ -622,7 +622,7 @@ Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p)
const int minWireSize = p->keyType()->minWireSize() + p->valueType()->minWireSize();
out << sp;
- out << nl << "public struct _" << name << "Helper";
+ out << nl << "public struct " << name << "Helper";
out << sb;
out << nl << "public static func read(from istr: " << istr << ") throws -> " << name;