Fixes grammer (#6477)

Updates docs
This commit is contained in:
mustiikhalil
2021-02-19 23:16:38 +03:00
committed by GitHub
parent 5e3613f732
commit e2f5438ac1
10 changed files with 66 additions and 62 deletions

View File

@@ -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 =