[vala] Fix spelling errors using 'codespell' tool
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix spelling errors using 'codespell' tool
- Date: Fri, 26 Apr 2013 11:43:14 +0000 (UTC)
commit 7d65305ba2d202afc622ace5aa53c99552bfeb64
Author: Anatol Pomozov <anatol pomozov gmail com>
Date: Sun Apr 14 19:57:55 2013 -0700
Fix spelling errors using 'codespell' tool
codegen/valaccodememberaccessmodule.vala | 2 +-
codegen/valaccodemethodmodule.vala | 4 ++--
doc/vala-gen-introspect.1 | 2 +-
gee/collection.vala | 2 +-
gee/list.vala | 4 ++--
gobject-introspection/scanner.c | 2 +-
vala/valacodecontext.vala | 2 +-
vala/valaelementaccess.vala | 2 +-
vala/valagenieparser.vala | 2 +-
vapi/metadata/Pango-1.0.metadata | 2 +-
10 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 1df4834..e9aefd5 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -455,7 +455,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
(param.direction == ParameterDirection.IN && type_as_struct != null
&& !type_as_struct.is_simple_type () && !result.value_type.nullable)) {
result.cvalue = new CCodeUnaryExpression
(CCodeUnaryOperator.POINTER_INDIRECTION, new CCodeIdentifier (get_variable_cname (name)));
} else {
- // Property setters of non simple structs shall replace all occurences
+ // Property setters of non simple structs shall replace all
occurrences
// of the "value" formal parameter with a dereferencing version of
that
// parameter.
if (current_property_accessor != null &&
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 42faab5..94edfe1 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -988,12 +988,12 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
foreach (Parameter param in m.get_parameters ()) {
if (param.direction != ParameterDirection.OUT) {
if ((direction & 1) == 0) {
- // no in paramters
+ // no in parameters
continue;
}
} else {
if ((direction & 2) == 0) {
- // no out paramters
+ // no out parameters
continue;
}
}
diff --git a/doc/vala-gen-introspect.1 b/doc/vala-gen-introspect.1
index d97f3b5..68052d9 100644
--- a/doc/vala-gen-introspect.1
+++ b/doc/vala-gen-introspect.1
@@ -20,7 +20,7 @@ After compilation, the following command generates a GI for pango:
.SH OPTIONS
.TP
-This command currenly takes no command line options.
+This command currently takes no command line options.
.SH SEE ALSO
.BR vapigen (1)
diff --git a/gee/collection.vala b/gee/collection.vala
index 6a652fc..76f568a 100644
--- a/gee/collection.vala
+++ b/gee/collection.vala
@@ -50,7 +50,7 @@ public abstract class Vala.Collection<G> : Iterable<G> {
public abstract bool add (G item);
/**
- * Removes the first occurence of an item from this collection. Must not
+ * Removes the first occurrence of an item from this collection. Must not
* be called on read-only collections.
*
* @param item the item to remove from the collection
diff --git a/gee/list.vala b/gee/list.vala
index e11399c..d730283 100644
--- a/gee/list.vala
+++ b/gee/list.vala
@@ -41,10 +41,10 @@ public abstract class Vala.List<G> : Collection<G> {
public abstract void set (int index, G item);
/**
- * Returns the index of the first occurence of the specified item in
+ * Returns the index of the first occurrence of the specified item in
* this list.
*
- * @return the index of the first occurence of the specified item, or
+ * @return the index of the first occurrence of the specified item, or
* -1 if the item could not be found
*/
public abstract int index_of (G item);
diff --git a/gobject-introspection/scanner.c b/gobject-introspection/scanner.c
index ced13f4..f691e78 100644
--- a/gobject-introspection/scanner.c
+++ b/gobject-introspection/scanner.c
@@ -1501,7 +1501,7 @@ g_igenerator_add_include_idl (GIGenerator *igenerator,
modules = g_idl_parse_file (filename, &error);
if (error)
{
- g_printerr ("An error occured while parsing %s: %s\n",
+ g_printerr ("An error occurred while parsing %s: %s\n",
filename, error->message);
return;
}
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 6825294..5e92e81 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -329,7 +329,7 @@ public class Vala.CodeContext {
*/
public bool add_external_package (string pkg) {
if (has_package (pkg)) {
- // ignore multiple occurences of the same package
+ // ignore multiple occurrences of the same package
return true;
}
diff --git a/vala/valaelementaccess.vala b/vala/valaelementaccess.vala
index a86a077..b879ffc 100644
--- a/vala/valaelementaccess.vala
+++ b/vala/valaelementaccess.vala
@@ -29,7 +29,7 @@ using GLib;
*/
public class Vala.ElementAccess : Expression {
/**
- * Expression representing the container on wich we want to access.
+ * Expression representing the container on which we want to access.
*/
public Expression container {
get {
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index d4d9d3f..01b89d6 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -2648,7 +2648,7 @@ public class Vala.Genie.Parser : CodeVisitor {
if (ModifierFlags.PRIVATE in flags) {
cl.access = SymbolAccessibility.PRIVATE;
} else {
- /* class must always be Public unless its name starts wtih underscore */
+ /* class must always be Public unless its name starts with underscore */
if (sym.name[0] == '_') {
cl.access = SymbolAccessibility.PRIVATE;
} else {
diff --git a/vapi/metadata/Pango-1.0.metadata b/vapi/metadata/Pango-1.0.metadata
index 879dd11..91d0961 100644
--- a/vapi/metadata/Pango-1.0.metadata
+++ b/vapi/metadata/Pango-1.0.metadata
@@ -65,7 +65,7 @@ read_line
scan_string
.out out=false
-// Backwards compatability
+// Backwards compatibility
AttrClass
.copy type="GLib.Callback" skip=false
.destroy type="GLib.Callback" skip=false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]