From: Xavi Artigas Date: Mon, 5 Nov 2018 10:14:37 +0000 (+0100) Subject: efl-mono: Typos in generated code comments X-Git-Tag: submit/tizen/20181108.080505~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b0c2c6682c2e8089f15f6cafb41c8dc46c9154d;p=platform%2Fupstream%2Fefl.git efl-mono: Typos in generated code comments These comments end up in the API reference docs, so typos look bad. --- diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index ef2c58f..7a40511 100644 --- a/src/bin/eolian_mono/eolian/mono/klass.hh +++ b/src/bin/eolian_mono/eolian/mono/klass.hh @@ -48,7 +48,7 @@ template static bool generate_equals_method(OutputIterator sink, Context const &context) { return as_generator( - scope_tab << "///Verifies if the given object is equals to this.\n" + scope_tab << "///Verifies if the given object is equal to this one.\n" << scope_tab << "public override bool Equals(object obj)\n" << scope_tab << "{\n" << scope_tab << scope_tab << "var other = obj as efl.IObject;\n" @@ -61,7 +61,7 @@ static bool generate_equals_method(OutputIterator sink, Context const &context) << scope_tab << "{\n" << scope_tab << scope_tab << "return this.raw_handle.ToInt32();\n" << scope_tab << "}\n" - << scope_tab << "///How native pointer in string representation.\n" + << scope_tab << "///Turns the native pointer into a string representation.\n" << scope_tab << "public override String ToString()\n" << scope_tab << "{\n" << scope_tab << scope_tab << "return $\"{this.GetType().Name}@[{this.raw_handle.ToInt32():x}]\";\n" @@ -183,7 +183,7 @@ struct klass << scope_tab << "}\n" << scope_tab << "///Delegate for function to be called from inside the native constructor.\n" << scope_tab << "public delegate void ConstructingMethod(" << interface_name << " obj);\n" - << scope_tab << "///Returns the pointer the unerlying Eo class object. Used internally on class methods.\n" + << scope_tab << "///Returns the pointer the underlying Eo class object. Used internally on class methods.\n" << scope_tab << "[System.Runtime.InteropServices.DllImport(" << context_find_tag(concrete_cxt).actual_library_name(cls.filename) << ")] public static extern System.IntPtr\n" << scope_tab << scope_tab << name_helpers::klass_get_name(cls) << "();\n"