Commit 7d65305b authored by Anatol Pomozov's avatar Anatol Pomozov Committed by Jürg Billeter

Fix spelling errors using 'codespell' tool

parent f5a54052
...@@ -455,7 +455,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule { ...@@ -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)) { (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))); result.cvalue = new CCodeUnaryExpression (CCodeUnaryOperator.POINTER_INDIRECTION, new CCodeIdentifier (get_variable_cname (name)));
} else { } 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 // of the "value" formal parameter with a dereferencing version of that
// parameter. // parameter.
if (current_property_accessor != null && if (current_property_accessor != null &&
......
...@@ -988,12 +988,12 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { ...@@ -988,12 +988,12 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
foreach (Parameter param in m.get_parameters ()) { foreach (Parameter param in m.get_parameters ()) {
if (param.direction != ParameterDirection.OUT) { if (param.direction != ParameterDirection.OUT) {
if ((direction & 1) == 0) { if ((direction & 1) == 0) {
// no in paramters // no in parameters
continue; continue;
} }
} else { } else {
if ((direction & 2) == 0) { if ((direction & 2) == 0) {
// no out paramters // no out parameters
continue; continue;
} }
} }
......
...@@ -20,7 +20,7 @@ After compilation, the following command generates a GI for pango: ...@@ -20,7 +20,7 @@ After compilation, the following command generates a GI for pango:
.SH OPTIONS .SH OPTIONS
.TP .TP
This command currenly takes no command line options. This command currently takes no command line options.
.SH SEE ALSO .SH SEE ALSO
.BR vapigen (1) .BR vapigen (1)
......
...@@ -50,7 +50,7 @@ public abstract class Vala.Collection<G> : Iterable<G> { ...@@ -50,7 +50,7 @@ public abstract class Vala.Collection<G> : Iterable<G> {
public abstract bool add (G item); 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. * be called on read-only collections.
* *
* @param item the item to remove from the collection * @param item the item to remove from the collection
......
...@@ -41,10 +41,10 @@ public abstract class Vala.List<G> : Collection<G> { ...@@ -41,10 +41,10 @@ public abstract class Vala.List<G> : Collection<G> {
public abstract void set (int index, G item); 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. * 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 * -1 if the item could not be found
*/ */
public abstract int index_of (G item); public abstract int index_of (G item);
......
...@@ -1501,7 +1501,7 @@ g_igenerator_add_include_idl (GIGenerator *igenerator, ...@@ -1501,7 +1501,7 @@ g_igenerator_add_include_idl (GIGenerator *igenerator,
modules = g_idl_parse_file (filename, &error); modules = g_idl_parse_file (filename, &error);
if (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); filename, error->message);
return; return;
} }
......
...@@ -329,7 +329,7 @@ public class Vala.CodeContext { ...@@ -329,7 +329,7 @@ public class Vala.CodeContext {
*/ */
public bool add_external_package (string pkg) { public bool add_external_package (string pkg) {
if (has_package (pkg)) { if (has_package (pkg)) {
// ignore multiple occurences of the same package // ignore multiple occurrences of the same package
return true; return true;
} }
......
...@@ -29,7 +29,7 @@ using GLib; ...@@ -29,7 +29,7 @@ using GLib;
*/ */
public class Vala.ElementAccess : Expression { 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 { public Expression container {
get { get {
......
...@@ -2648,7 +2648,7 @@ public class Vala.Genie.Parser : CodeVisitor { ...@@ -2648,7 +2648,7 @@ public class Vala.Genie.Parser : CodeVisitor {
if (ModifierFlags.PRIVATE in flags) { if (ModifierFlags.PRIVATE in flags) {
cl.access = SymbolAccessibility.PRIVATE; cl.access = SymbolAccessibility.PRIVATE;
} else { } 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] == '_') { if (sym.name[0] == '_') {
cl.access = SymbolAccessibility.PRIVATE; cl.access = SymbolAccessibility.PRIVATE;
} else { } else {
......
...@@ -65,7 +65,7 @@ read_line ...@@ -65,7 +65,7 @@ read_line
scan_string scan_string
.out out=false .out out=false
// Backwards compatability // Backwards compatibility
AttrClass AttrClass
.copy type="GLib.Callback" skip=false .copy type="GLib.Callback" skip=false
.destroy type="GLib.Callback" skip=false .destroy type="GLib.Callback" skip=false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment