]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix various typos in comments and strings
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Aug 2020 07:04:21 +0000 (09:04 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Aug 2020 07:14:32 +0000 (09:14 +0200)
See https://gitlab.gnome.org/GNOME/vala/issues/1063

25 files changed:
codegen/valaccodebasemodule.vala
gee/iterator.vala
libvaladoc/content/embedded.vala
libvaladoc/content/sourcecode.vala
libvaladoc/html/htmlrenderer.vala
libvaladoc/markupwriter.vala
libvaladoc/parser/parser.vala
vala/valaarraycreationexpression.vala
vala/valabinaryexpression.vala
vala/valaclass.vala
vala/valacodevisitor.vala
vala/valacodewriter.vala
vala/valadatatype.vala
vala/valadelegate.vala
vala/valaerrortype.vala
vala/valageniescanner.vala
vala/valagirparser.vala
vala/valainitializerlist.vala
vala/valalockable.vala
vala/valamethod.vala
vala/valaproperty.vala
vala/valapropertyaccessor.vala
vala/valasymbol.vala
valadoc/treebuilder.vala
vapigen/valavapicheck.vala

index 40c1550a7cc6666be8a1d05315d3cb3a770e76b1..28936d46b274d67fa6d7353895ad6a1c751fd519 100644 (file)
@@ -4133,7 +4133,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        ccode.add_return (new CCodeIdentifier ("obj"));
                } else if (is_in_destructor ()) {
                        // do not call return as member cleanup and chain up to base finalizer
-                       // stil need to be executed
+                       // still need to be executed
                        ccode.add_goto ("_return");
                } else if (is_in_coroutine ()) {
                } else if (current_method is CreationMethod) {
index 224fa6281f5dd24a6bf29a5cb74d2bf976613797..c6680c8cb07e2d2218f92498c0c2085e941db1a1 100644 (file)
@@ -54,7 +54,7 @@ public abstract class Vala.Iterator<G> {
        public abstract void remove ();
 
        /**
-        * Determines wheather the call to {@link get} is legal. It is false at the
+        * Determines whether the call to {@link get} is legal. It is false at the
         * beginning and after {@link remove} call and true otherwise.
         */
        public abstract bool valid { get; }
index 8eed77cfa956999c65683fab6cdfc1870c4539e7..8ed92bdd0c6608b2c99790db64fbae53168e3de2 100644 (file)
@@ -75,7 +75,7 @@ public class Valadoc.Content.Embedded : ContentElement, Inline, StyleAttributes
                        }
                }
 
-               // search relative to the current directory / absoulte path
+               // search relative to the current directory / absolute path
                if (!FileUtils.test (url, FileTest.EXISTS | FileTest.IS_REGULAR)) {
                        string base_name = Path.get_basename (url);
 
index a9b74b55856c971a52ed33235fbc5e5103406257..8422e90c32a331998a1c21419bbe8679850d113f 100644 (file)
@@ -111,7 +111,7 @@ public class Valadoc.Content.SourceCode : ContentElement, Inline {
                        }
                }
 
-               // search relative to the current directory / absoulte path
+               // search relative to the current directory / absolute path
                if (!FileUtils.test (path, FileTest.EXISTS | FileTest.IS_REGULAR)) {
                        string node_segment = (container is Api.Package)? "" : container.get_full_name () + ": ";
                        code = "File '%s' does not exist".printf (path);
index 08a0f52b825c2264dacf6e57b3c0d264bbc5f7d7..9299f3897585e942e23ba90386cfd10e92c56bb1 100644 (file)
@@ -421,7 +421,7 @@ public class Valadoc.Html.HtmlRenderer : ContentRenderer {
        }
 
        public override void visit_paragraph (Paragraph element) {
-               //FIXME: the extra-field is just a workarround for the current codegen ...
+               //FIXME: the extra-field is just a workaround for the current codegen ...
                switch (element.horizontal_align) {
                case HorizontalAlign.CENTER:
                        writer.start_tag ("p", {"style", "text-align: center;"});
index 5787014366a1577774cd1e878d6325e480035f5a..b9bd3c3b9368d41ed0b5907503629ddf98961712 100644 (file)
@@ -81,7 +81,7 @@ public class Valadoc.MarkupWriter {
        }
 
        /**
-        * Writes text to a desination like a {@link GLib.StringBuilder} or a {@link GLib.FileStream}
+        * Writes text to a destination like a {@link GLib.StringBuilder} or a {@link GLib.FileStream}
         */
        public delegate void WriteFunc (string text);
 
index acf1d82be155f9c5b4c8164e3ca40ee2bcdb6fee..203287605a0a0c19d33899983bcdd4baccfa14db 100644 (file)
@@ -84,7 +84,7 @@ public class Valadoc.Parser : ParserCallback {
 
        public void accept_token (Token token) throws ParserError {
                #if HARD_DEBUG
-                       debug ("Incomming token: %s", token.to_pretty_string ());
+                       debug ("Incoming token: %s", token.to_pretty_string ());
                #endif
 
                _current_token = token;
@@ -295,7 +295,7 @@ public class Valadoc.Parser : ParserCallback {
 
 #if DEBUG
        private void log_error (string message) {
-               stderr.printf ("An error occured while parsing: %s\n", message);
+               stderr.printf ("An error occurred while parsing: %s\n", message);
                stderr.printf ("\nDumping rule stack:\n");
                for (int i = 0; i < rule_stack.size; i++) {
                        stderr.printf ("\t%2d: %s\n", i, rule_stack[i].to_string (rule_state_stack[i]));
index 58a2135ad4b3c585caab4f72d866e6d375a9f10d..60dec766a6a1f2efdeee7c80b8050ad3d3d7d14c 100644 (file)
@@ -298,7 +298,7 @@ public class Vala.ArrayCreationExpression : Expression {
                } else {
                        if (initlist == null) {
                                error = true;
-                               /* this is an internal error because it is already handeld by the parser */
+                               /* this is an internal error because it is already handled by the parser */
                                Report.error (source_reference, "internal error: initializer list expected");
                        } else {
                                foreach (Expression size in calc_sizes) {
index 19808879fb7228c1acfc36b927e7d42577c7869a..e1732156c211394c3a0365df1f5b418ff6d885a4 100644 (file)
@@ -487,7 +487,7 @@ public class Vala.BinaryExpression : Expression {
                        /* relational operation */
 
                        if (context.profile == Profile.GOBJECT) {
-                               // Implicit cast for comparsion expression of GValue with other type
+                               // Implicit cast for comparison expression of GValue with other type
                                var gvalue_type = context.analyzer.gvalue_type.type_symbol;
                                if ((left.target_type.type_symbol == gvalue_type && right.target_type.type_symbol != gvalue_type)
                                        || (left.target_type.type_symbol != gvalue_type && right.target_type.type_symbol == gvalue_type)) {
index e0247ac9b8a3f6db7728bd7d28f674af48a297c2..3d7fee98c84b91fe54b6ac2a8434d7fc3e25e479 100644 (file)
@@ -582,7 +582,7 @@ public class Vala.Class : ObjectTypeSymbol {
                        Report.error (source_reference, "SingleInstance class `%s' requires inheritance from `GLib.Object'".printf (get_full_name ()));
                }
 
-               /* singleton classes require an instance construtor */
+               /* singleton classes require an instance constructor */
                if (is_singleton && constructor == null) {
                        var c = new Constructor (source_reference);
                        c.body = new Block (source_reference);
index a18e0e7fd23c6807b277d677b1ce9ca45ac500d0..f47f963494fdf76b4a980020a701dc88bf3c17a8 100644 (file)
@@ -383,7 +383,7 @@ public abstract class Vala.CodeVisitor {
        /**
         * Visit operation called for catch clauses.
         *
-        * @param clause a catch cluase
+        * @param clause a catch clause
         */
        public virtual void visit_catch_clause (CatchClause clause) {
        }
@@ -421,7 +421,7 @@ public abstract class Vala.CodeVisitor {
        }
 
        /**
-        * Visit operations called for expresions.
+        * Visit operations called for expressions.
         *
         * @param expr an expression
         */
@@ -429,7 +429,7 @@ public abstract class Vala.CodeVisitor {
        }
 
        /**
-        * Visit operations called for array creation expresions.
+        * Visit operations called for array creation expressions.
         *
         * @param expr an array creation expression
         */
index 9658cdb1fec8bfe3b7c44d82f833b0ba23ef46de..20415cbddf0d89bd12faeed92af533952072f306 100644 (file)
@@ -51,7 +51,7 @@ public class Vala.CodeWriter : CodeVisitor {
 
        /**
         * Allows overriding of a specific cheader in the output
-        * @param original orignal cheader to override
+        * @param original original cheader to override
         * @param replacement cheader to replace original with
         */
        public void set_cheader_override (string original, string replacement)
index 993c1432bf53df0c9e48f6d01a69763f0e5bbe35..ada2c1dd4bdde3ed59742eaa0c28d7776c2acfe3 100644 (file)
@@ -372,7 +372,7 @@ public abstract class Vala.DataType : CodeNode {
                                return true;
                        }
 
-                       // Allow compatiblity of struct subtypes in both ways
+                       // Allow compatibility of struct subtypes in both ways
                        if (expect_struct.is_subtype_of (expr_struct)) {
                                return true;
                        }
index d4576be685f668604256c4290cf617fccf2b7c95..b498133c65ccc2bd8665e1c8a34dd6909b388a9c 100644 (file)
@@ -113,7 +113,7 @@ public class Vala.Delegate : TypeSymbol, Callable {
        }
 
        /**
-        * Appends paramater to this callback function.
+        * Appends parameter to this callback function.
         *
         * @param param a formal parameter
         */
index 4fc6156e252521e84f57acea99871c0a638d6527..e0b59c5d73ab54939a0b1c3285381880213bd24c 100644 (file)
@@ -67,7 +67,7 @@ public class Vala.ErrorType : ReferenceType {
                        return true;
                }
 
-               /* otherwhise the error_domain has to be equal */
+               /* otherwise the error_domain has to be equal */
                if (et.error_domain != error_domain) {
                        return false;
                }
index b5ff25f6a79f89251294f93d1188cfd0a9ec157c..f5672a64d80376e57540c1cdfb4d88ff685e8d3c 100644 (file)
@@ -1453,7 +1453,7 @@ public class Vala.Genie.Scanner {
 
                }
 
-               /* ignore comments and whitspace and other lines that contain no code */
+               /* ignore comments and whitespace and other lines that contain no code */
 
                space ();
 
index e15266226a274d97011d6e9f93f8b11b9e86e42f..1de6f0a31b66e40702c22fc74239f2aeb07d8900 100644 (file)
@@ -3825,7 +3825,7 @@ public class Vala.GirParser : CodeVisitor {
                        alias.merged = true;
                }
 
-               // inherit atributes, like type_id
+               // inherit attributes, like type_id
                if (type_sym is Class || (type_sym is Struct && !simple_type)) {
                        if (type_sym.has_attribute_argument ("CCode", "has_type_id")) {
                                alias.symbol.set_attribute_bool ("CCode", "has_type_id", type_sym.get_attribute_bool ("CCode", "has_type_id"));
index ea6fc44e297042eddb4e1cd359c75cd33d2700b2..ac81cb07dbb6c0bff8a3a1ddf5b1b9fd667a4f6e 100644 (file)
@@ -41,7 +41,7 @@ public class Vala.InitializerList : Expression {
        }
 
        /**
-        * Returns the initalizer expression list
+        * Returns the initializer expression list
         *
         * @return expression list
         */
index bb0fda22d4e78e48f2647d6db8dc4b0d7c26b65b..7eeaec200444a49666c6750c2d8f8a499de729c4 100644 (file)
@@ -28,7 +28,7 @@ using GLib;
  */
 public interface Vala.Lockable {
        /**
-        * Indicates a specific lockable object beeing actually locked somewhere.
+        * Indicates a specific lockable object being actually locked somewhere.
         */
        public abstract bool lock_used { get; set; }
 }
index 152f6b3bedfe9867a6d5c16580ceb6eec939962f..6c1c7733be8fc2e1efb631fe5681bca990bbde21 100644 (file)
@@ -54,7 +54,7 @@ public class Vala.Method : Subroutine, Callable {
        /**
         * Specifies whether this method is abstract. Abstract methods have no
         * body, may only be specified within abstract classes, and must be
-        * overriden by derived non-abstract classes.
+        * overridden by derived non-abstract classes.
         */
        public bool is_abstract { get; set; }
 
index faa7fdf01e4844ff050e953eb6a45635e64fa5b0..b04cf19b0d96cfb62a16707c42f4550b6d5df3a8 100644 (file)
@@ -80,7 +80,7 @@ public class Vala.Property : Symbol, Lockable {
        /**
         * Specifies whether this property is abstract. Abstract properties have
         * no accessor bodies, may only be specified within abstract classes and
-        * interfaces, and must be overriden by derived non-abstract classes.
+        * interfaces, and must be overridden by derived non-abstract classes.
         */
        public bool is_abstract { get; set; }
 
index 101fc018f740ac72cc8d4026f39b0d33564da75f..6b24c2bbf22990ffebc35fe114df55f504cea91d 100644 (file)
@@ -156,7 +156,7 @@ public class Vala.PropertyAccessor : Subroutine {
 
                if (writable || construction) {
                        value_parameter = new Parameter ("value", value_type, source_reference);
-                       // Inherit important atttributes
+                       // Inherit important attributes
                        value_parameter.copy_attribute_bool (prop, "CCode", "array_length");
                        value_parameter.copy_attribute_bool (prop, "CCode", "array_null_terminated");
                        value_parameter.copy_attribute_bool (prop, "CCode", "delegate_target");
index 6b1c7f665ad61fe7ccad14d62499eb5654085e3b..5ce7b389c6c4c50339115584ef5f3f0dd966327d 100644 (file)
@@ -73,7 +73,7 @@ public abstract class Vala.Symbol : CodeNode {
        public bool used { get; set; }
 
        /**
-        * Specifies whether this symbol is anonymous and has no public defintion.
+        * Specifies whether this symbol is anonymous and has no public definition.
         */
        public bool anonymous { get; set; }
 
index 67e1d460ed98d66ee8b7f6ba1aca60c718df032f..4df5d4d0d27cee61557802f93db3b5ba396fd2ff 100644 (file)
@@ -348,7 +348,7 @@ public class Valadoc.TreeBuilder : Vala.CodeVisitor {
        }
 
        private bool add_package (Vala.CodeContext context, string pkg) {
-               // ignore multiple occurences of the same package
+               // ignore multiple occurrences of the same package
                if (context.has_package (pkg)) {
                        return true;
                }
index ce6340ffe23d20348da1ff786436b643c1b027e1..45eb33c8eede2dc6fe59228c0ab87a1a48ce07de 100644 (file)
@@ -114,7 +114,7 @@ class Vala.VAPICheck {
 
                                case IdlNodeTypeId.VALUE:
                                case IdlNodeTypeId.VFUNC:
-                                       // Not appliable?
+                                       // Not applicable?
                                        break;
 
                                default: