Browse Source

Fix typo in GDScript narrowing conversion warning message

This closes #26790.
Hugo Locurcio 6 years ago
parent
commit
5a574a4f29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript.cpp

+ 1 - 1
modules/gdscript/gdscript.cpp

@@ -1965,7 +1965,7 @@ String GDScriptWarning::get_message() const {
 			return "Assignment operation, but the function '" + symbols[0] + "()' returns void.";
 		} break;
 		case NARROWING_CONVERSION: {
-			return "Narrowing coversion (float is converted to int and lose precision).";
+			return "Narrowing conversion (float is converted to int and loses precision).";
 		} break;
 		case FUNCTION_MAY_YIELD: {
 			CHECK_SYMBOLS(1);