Merge pull request #21982 from luzpaz/misc-typos

Misc. typos
This commit is contained in:
Rémi Verschelde 2018-09-13 10:59:00 +02:00 committed by GitHub
commit 1a16dabfb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 123 additions and 123 deletions

View file

@ -1973,14 +1973,14 @@ String GDScriptWarning::get_message() const {
} break;
case UNSAFE_CAST: {
CHECK_SYMBOLS(1);
return "The value is cast to '" + symbols[0] + "' but has an unkown type.";
return "The value is cast to '" + symbols[0] + "' but has an unknown type.";
} break;
case UNSAFE_CALL_ARGUMENT: {
CHECK_SYMBOLS(4);
return "The argument '" + symbols[0] + "' of the function '" + symbols[1] + "' requires a the subtype '" + symbols[2] + "' but the supertype '" + symbols[3] + "' was provided";
} break;
}
ERR_EXPLAIN("Invalid GDScript waring code: " + get_name_from_code(code));
ERR_EXPLAIN("Invalid GDScript warning code: " + get_name_from_code(code));
ERR_FAIL_V(String());
#undef CHECK_SYMBOLS
@ -2031,7 +2031,7 @@ GDScriptWarning::Code GDScriptWarning::get_code_from_name(const String &p_name)
}
}
ERR_EXPLAIN("Invalid GDScript waring name: " + p_name);
ERR_EXPLAIN("Invalid GDScript warning name: " + p_name);
ERR_FAIL_V(WARNING_MAX);
}