From 08bde5b2dea65ef3f80af5de4f4caf0e76982b64 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Wed, 12 Sep 2018 21:38:39 -0400 Subject: Misc. typos Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"` --- core/io/http_client.cpp | 2 +- core/math/octree.h | 2 +- core/math/triangulate.cpp | 2 +- core/os/dir_access.h | 2 +- core/os/os.h | 2 +- core/project_settings.cpp | 2 +- core/variant_parser.cpp | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'core') diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index 2425bb6d69..195e5135e8 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -348,7 +348,7 @@ Error HTTPClient::poll() { } if (ssl->get_status() == StreamPeerSSL::STATUS_CONNECTED) { - // Handshake has been successfull + // Handshake has been successful handshaking = false; status = STATUS_CONNECTED; return OK; diff --git a/core/math/octree.h b/core/math/octree.h index 4e3d6257f0..a0b99fc0a2 100644 --- a/core/math/octree.h +++ b/core/math/octree.h @@ -478,7 +478,7 @@ void Octree::_insert_element(Element *p_element, Octant *p_oct splits++; } } else { - /* check againt AABB where child should be */ + /* check against AABB where child should be */ AABB aabb = p_octant->aabb; aabb.size *= 0.5; diff --git a/core/math/triangulate.cpp b/core/math/triangulate.cpp index 0edc0ea039..69ffc95946 100644 --- a/core/math/triangulate.cpp +++ b/core/math/triangulate.cpp @@ -186,7 +186,7 @@ bool Triangulate::triangulate(const Vector &contour, Vector &resul nv--; - /* resest error detection counter */ + /* reset error detection counter */ count = 2 * nv; } } diff --git a/core/os/dir_access.h b/core/os/dir_access.h index 4df0618021..2fe44e97b2 100644 --- a/core/os/dir_access.h +++ b/core/os/dir_access.h @@ -38,7 +38,7 @@ @author Juan Linietsky */ -//@ TOOD, excellent candidate for THREAD_SAFE MACRO, should go through all these and add THREAD_SAFE where it applies +//@ TODO, excellent candidate for THREAD_SAFE MACRO, should go through all these and add THREAD_SAFE where it applies class DirAccess { public: enum AccessType { diff --git a/core/os/os.h b/core/os/os.h index 100af95ef1..a4a3a30f77 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -128,7 +128,7 @@ protected: RenderThreadMode _render_thread_mode; - // functions used by main to initialize/deintialize the OS + // functions used by main to initialize/deinitialize the OS void add_logger(Logger *p_logger); virtual void initialize_core() = 0; diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 890789ec6f..8d403ca816 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -59,7 +59,7 @@ String ProjectSettings::get_resource_path() const { String ProjectSettings::localize_path(const String &p_path) const { if (resource_path == "") - return p_path; //not initialied yet + return p_path; //not initialized yet if (p_path.begins_with("res://") || p_path.begins_with("user://") || (p_path.is_abs_path() && !p_path.begins_with(resource_path))) diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 446aee286d..e2cb8e507c 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -1429,10 +1429,10 @@ Error VariantParser::_parse_tag(Token &token, Stream *p_stream, int &line, Strin break; if (parsing_tag && token.type == TK_PERIOD) { - r_tag.name += "."; //support tags such as [someprop.Anroid] for specific platforms + r_tag.name += "."; //support tags such as [someprop.Android] for specific platforms get_token(p_stream, token, line, r_err_str); } else if (parsing_tag && token.type == TK_COLON) { - r_tag.name += ":"; //support tags such as [someprop.Anroid] for specific platforms + r_tag.name += ":"; //support tags such as [someprop.Android] for specific platforms get_token(p_stream, token, line, r_err_str); } else { parsing_tag = false; -- cgit v1.2.3