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 {
(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 &&
......
......@@ -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;
}
}
......
......@@ -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)
......
......@@ -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
......
......@@ -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);
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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
......
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