diff options
author | mustiikhalil <mustii@mmk.one> | 2021-02-19 23:16:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 12:16:38 -0800 |
commit | e2f5438ac1847c322dc558628ea4f83c8498a071 (patch) | |
tree | ede6eb54d5a29f2d3c1be84860dba394e899b48d /src | |
parent | 5e3613f73294f3b03b5373c05ea9f7402d58131e (diff) | |
download | flatbuffers-e2f5438ac1847c322dc558628ea4f83c8498a071.tar.gz flatbuffers-e2f5438ac1847c322dc558628ea4f83c8498a071.tar.bz2 flatbuffers-e2f5438ac1847c322dc558628ea4f83c8498a071.zip |
Fixes grammer (#6477)
Updates docs
Diffstat (limited to 'src')
-rw-r--r-- | src/idl_gen_swift.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/idl_gen_swift.cpp b/src/idl_gen_swift.cpp index 512711cd..91f47ff2 100644 --- a/src/idl_gen_swift.cpp +++ b/src/idl_gen_swift.cpp @@ -605,9 +605,10 @@ class SwiftGenerator : public BaseGenerator { auto offset_type = IsString(field.value.type) ? "Offset<String>" : "Offset<UOffset>"; auto camel_case_name = - (IsVector(field.value.type) || IsArray(field.value.type) ? "vectorOf" - : "offsetOf") + - MakeCamel(name, true); + MakeCamel(name, false) + + (IsVector(field.value.type) || IsArray(field.value.type) + ? "VectorOffset" + : "Offset"); create_func_header.push_back(camel_case_name + " " + name + ": " + offset_type + " = Offset()"); auto reader_type = |