[vala/0.48] Fix various typos in comments and strings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] Fix various typos in comments and strings
- Date: Sat, 29 Aug 2020 18:47:26 +0000 (UTC)
commit 257cdc813a77b20086fd8c0423b79fa0e486e711
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 19 09:04:21 2020 +0200
Fix various typos in comments and strings
See https://gitlab.gnome.org/GNOME/vala/issues/1063
codegen/valaccodebasemodule.vala | 2 +-
gee/iterator.vala | 2 +-
libvaladoc/content/embedded.vala | 2 +-
libvaladoc/content/sourcecode.vala | 2 +-
libvaladoc/html/htmlrenderer.vala | 2 +-
libvaladoc/markupwriter.vala | 2 +-
libvaladoc/parser/parser.vala | 4 ++--
vala/valaarraycreationexpression.vala | 2 +-
vala/valabinaryexpression.vala | 2 +-
vala/valaclass.vala | 2 +-
vala/valacodevisitor.vala | 6 +++---
vala/valacodewriter.vala | 2 +-
vala/valadatatype.vala | 2 +-
vala/valadelegate.vala | 2 +-
vala/valaerrortype.vala | 2 +-
vala/valageniescanner.vala | 2 +-
vala/valagirparser.vala | 2 +-
vala/valainitializerlist.vala | 2 +-
vala/valalockable.vala | 2 +-
vala/valamethod.vala | 2 +-
vala/valaproperty.vala | 2 +-
vala/valapropertyaccessor.vala | 2 +-
vala/valasymbol.vala | 2 +-
valadoc/treebuilder.vala | 2 +-
vapigen/valavapicheck.vala | 2 +-
25 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 06808ab74..22faa4a02 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4106,7 +4106,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) {
diff --git a/gee/iterator.vala b/gee/iterator.vala
index 224fa6281..c6680c8cb 100644
--- a/gee/iterator.vala
+++ b/gee/iterator.vala
@@ -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; }
diff --git a/libvaladoc/content/embedded.vala b/libvaladoc/content/embedded.vala
index 8eed77cfa..8ed92bdd0 100644
--- a/libvaladoc/content/embedded.vala
+++ b/libvaladoc/content/embedded.vala
@@ -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);
diff --git a/libvaladoc/content/sourcecode.vala b/libvaladoc/content/sourcecode.vala
index a9b74b558..8422e90c3 100644
--- a/libvaladoc/content/sourcecode.vala
+++ b/libvaladoc/content/sourcecode.vala
@@ -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);
diff --git a/libvaladoc/html/htmlrenderer.vala b/libvaladoc/html/htmlrenderer.vala
index 08a0f52b8..9299f3897 100644
--- a/libvaladoc/html/htmlrenderer.vala
+++ b/libvaladoc/html/htmlrenderer.vala
@@ -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;"});
diff --git a/libvaladoc/markupwriter.vala b/libvaladoc/markupwriter.vala
index 578701436..b9bd3c3b9 100644
--- a/libvaladoc/markupwriter.vala
+++ b/libvaladoc/markupwriter.vala
@@ -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);
diff --git a/libvaladoc/parser/parser.vala b/libvaladoc/parser/parser.vala
index acf1d82be..203287605 100644
--- a/libvaladoc/parser/parser.vala
+++ b/libvaladoc/parser/parser.vala
@@ -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]));
diff --git a/vala/valaarraycreationexpression.vala b/vala/valaarraycreationexpression.vala
index ec4876f3c..e66353406 100644
--- a/vala/valaarraycreationexpression.vala
+++ b/vala/valaarraycreationexpression.vala
@@ -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) {
diff --git a/vala/valabinaryexpression.vala b/vala/valabinaryexpression.vala
index 16adfa1ed..f88ac3848 100644
--- a/vala/valabinaryexpression.vala
+++ b/vala/valabinaryexpression.vala
@@ -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)) {
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index c3cc48f55..4be5519b6 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -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);
diff --git a/vala/valacodevisitor.vala b/vala/valacodevisitor.vala
index d961f85e9..e41d8abde 100644
--- a/vala/valacodevisitor.vala
+++ b/vala/valacodevisitor.vala
@@ -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) {
}
@@ -413,7 +413,7 @@ public abstract class Vala.CodeVisitor {
}
/**
- * Visit operations called for expresions.
+ * Visit operations called for expressions.
*
* @param expr an expression
*/
@@ -421,7 +421,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
*/
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 28ad9fd34..1a6ca5691 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -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)
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index 993c1432b..ada2c1dd4 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -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;
}
diff --git a/vala/valadelegate.vala b/vala/valadelegate.vala
index d4576be68..b498133c6 100644
--- a/vala/valadelegate.vala
+++ b/vala/valadelegate.vala
@@ -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
*/
diff --git a/vala/valaerrortype.vala b/vala/valaerrortype.vala
index 4fc6156e2..e0b59c5d7 100644
--- a/vala/valaerrortype.vala
+++ b/vala/valaerrortype.vala
@@ -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;
}
diff --git a/vala/valageniescanner.vala b/vala/valageniescanner.vala
index b5ff25f6a..f5672a64d 100644
--- a/vala/valageniescanner.vala
+++ b/vala/valageniescanner.vala
@@ -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 ();
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 70ca86975..40d1171a3 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3821,7 +3821,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"));
diff --git a/vala/valainitializerlist.vala b/vala/valainitializerlist.vala
index ea6fc44e2..ac81cb07d 100644
--- a/vala/valainitializerlist.vala
+++ b/vala/valainitializerlist.vala
@@ -41,7 +41,7 @@ public class Vala.InitializerList : Expression {
}
/**
- * Returns the initalizer expression list
+ * Returns the initializer expression list
*
* @return expression list
*/
diff --git a/vala/valalockable.vala b/vala/valalockable.vala
index bb0fda22d..7eeaec200 100644
--- a/vala/valalockable.vala
+++ b/vala/valalockable.vala
@@ -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; }
}
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index 152f6b3be..6c1c7733b 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -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; }
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index faa7fdf01..b04cf19b0 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -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; }
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index 101fc018f..6b24c2bbf 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -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");
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala
index 6b1c7f665..5ce7b389c 100644
--- a/vala/valasymbol.vala
+++ b/vala/valasymbol.vala
@@ -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; }
diff --git a/valadoc/treebuilder.vala b/valadoc/treebuilder.vala
index 521e67769..c256893ab 100644
--- a/valadoc/treebuilder.vala
+++ b/valadoc/treebuilder.vala
@@ -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;
}
diff --git a/vapigen/valavapicheck.vala b/vapigen/valavapicheck.vala
index ce6340ffe..45eb33c8e 100644
--- a/vapigen/valavapicheck.vala
+++ b/vapigen/valavapicheck.vala
@@ -114,7 +114,7 @@ class Vala.VAPICheck {
case IdlNodeTypeId.VALUE:
case IdlNodeTypeId.VFUNC:
- // Not appliable?
+ // Not applicable?
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]