Browse Source

Merge pull request #107550 from AdrienUfferte/fix-spelling

Fix spelling in comments
Rémi Verschelde 1 month ago
parent
commit
9e1e2fdbd5

+ 1 - 1
core/templates/tuple.h

@@ -42,7 +42,7 @@
 // recursion. So: float value;  int value; etc.
 //
 // This works by splitting up the parameter pack for each step in the recursion minus the first.
-// so the the first step creates the "T value" from the first template parameter.
+// so the first step creates the "T value" from the first template parameter.
 // any further template arguments end up in "Rest", which we then use to instantiate a new
 // tuple, but now minus the first argument. To write this all out:
 //

+ 1 - 1
modules/gltf/skin_tool.cpp

@@ -402,7 +402,7 @@ Error SkinTool::_determine_skeletons(
 		for (GLTFSkinIndex skin_i = 0; skin_i < skins.size(); ++skin_i) {
 			Ref<GLTFSkin> skin = skins.write[skin_i];
 
-			// If any of the the skeletons nodes exist in a skin, that skin now maps to the skeleton
+			// If any of the skeletons nodes exist in a skin, that skin now maps to the skeleton
 			for (int i = 0; i < skeleton_nodes.size(); ++i) {
 				SkinNodeIndex skel_node_i = skeleton_nodes[i];
 				if (skin->joints.has(skel_node_i) || skin->non_joints.has(skel_node_i)) {

+ 1 - 1
modules/zip/doc_classes/ZIPPacker.xml

@@ -87,7 +87,7 @@
 			Start a file with the fastest Deflate compression level ([code]1[/code]). This is fast to compress, but results in larger file sizes than [constant COMPRESSION_DEFAULT]. Decompression speed is generally unaffected by the chosen compression level.
 		</constant>
 		<constant name="COMPRESSION_BEST" value="9" enum="CompressionLevel">
-			Start a file with the the best Deflate compression level ([code]9[/code]). This is slow to compress, but results in smaller file sizes than [constant COMPRESSION_DEFAULT]. Decompression speed is generally unaffected by the chosen compression level.
+			Start a file with the best Deflate compression level ([code]9[/code]). This is slow to compress, but results in smaller file sizes than [constant COMPRESSION_DEFAULT]. Decompression speed is generally unaffected by the chosen compression level.
 		</constant>
 	</constants>
 </class>

+ 1 - 1
platform/macos/display_server_embedded.h

@@ -42,7 +42,7 @@ struct DisplayServerEmbeddedState {
 	/// Default to a scale of 2.0, which is the most common.
 	float screen_max_scale = 2.0f;
 	float screen_dpi = 96.0f;
-	/// The display ID of the window which is displaying the the embedded process content.
+	/// The display ID of the window which is displaying the embedded process content.
 	uint32_t display_id = -1;
 
 	void serialize(PackedByteArray &r_data);

+ 2 - 2
platform/windows/display_server_windows.cpp

@@ -4658,7 +4658,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
 	// Process window messages.
 	switch (uMsg) {
 		case WM_GETOBJECT: {
-			get_object_recieved = true;
+			get_object_received = true;
 		} break;
 		case WM_MENUCOMMAND: {
 			native_menu->_menu_activate(HMENU(lParam), (int)wParam);
@@ -7177,7 +7177,7 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
 			}
 
 			uint64_t delta = OS::get_singleton()->get_ticks_msec() - time_wait;
-			if (delta > 500 || get_object_recieved) {
+			if (delta > 500 || get_object_received) {
 				break;
 			}
 		}

+ 1 - 1
platform/windows/display_server_windows.h

@@ -278,7 +278,7 @@ class DisplayServerWindows : public DisplayServer {
 	String rendering_driver;
 	bool app_focused = false;
 	bool keep_screen_on = false;
-	bool get_object_recieved = false;
+	bool get_object_received = false;
 	HANDLE power_request;
 
 	TTS_Windows *tts = nullptr;