From 0ce28c0b0d87cb199ef790a9acc1ba25e64e2e84 Mon Sep 17 00:00:00 2001 From: linkmauve Date: Wed, 10 Jan 2018 15:12:54 +0100 Subject: Fix typos in comments and variable names (#269) Thanks `codespell`! --- xmpp-vala/src/core/stanza_node.vala | 2 +- xmpp-vala/src/module/xep/0030_service_discovery/flag.vala | 2 +- xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala | 4 ++-- xmpp-vala/tests/common.vala | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'xmpp-vala') diff --git a/xmpp-vala/src/core/stanza_node.vala b/xmpp-vala/src/core/stanza_node.vala index 341e67ba..695a72cd 100644 --- a/xmpp-vala/src/core/stanza_node.vala +++ b/xmpp-vala/src/core/stanza_node.vala @@ -282,7 +282,7 @@ public class StanzaNode : StanzaEntry { } /** - * Set only occurence + * Set only occurrence **/ public void set_attribute(string name, string val, string? ns_uri = null) { if (ns_uri == null) ns_uri = this.ns_uri; diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala b/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala index cd847974..4f3e5eea 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala @@ -13,7 +13,7 @@ public class Flag : XmppStreamFlag { public Gee.List features = new ArrayList(); public Gee.List? get_entity_categories(string jid) { - return entity_identities.has_key(jid) ? entity_identities[jid] : null; // TODO isnt this default for hashmap + return entity_identities.has_key(jid) ? entity_identities[jid] : null; // TODO isn’t this default for hashmap } public bool? has_entity_identity(string jid, string category, string type) { diff --git a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala index 9f57a14b..cba58883 100644 --- a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala +++ b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala @@ -103,7 +103,7 @@ namespace Xmpp.Xep.EntityCapabilities { } public interface Storage : Object { - public abstract void store_features(string entitiy, Gee.List capabilities); - public abstract Gee.List get_features(string entitiy); + public abstract void store_features(string entity, Gee.List capabilities); + public abstract Gee.List get_features(string entity); } } diff --git a/xmpp-vala/tests/common.vala b/xmpp-vala/tests/common.vala index b393ba79..e1c155ac 100644 --- a/xmpp-vala/tests/common.vala +++ b/xmpp-vala/tests/common.vala @@ -27,7 +27,7 @@ void fail_if_not_error_code(ErrorFunc func, int expectedCode, string? reason = n func(); fail_if_reached(@"$(reason + ": " ?? "")no error thrown"); } catch (Error e) { - fail_if_not_eq_int(e.code, expectedCode, @"$(reason + ": " ?? "")catched unexpected error"); + fail_if_not_eq_int(e.code, expectedCode, @"$(reason + ": " ?? "")caught unexpected error"); } } -- cgit v1.2.3-70-g09d2