Преглед изворни кода

*: fix spelling mistakes found by codespell

Daniele Bartolini пре 4 година
родитељ
комит
83bc8d2702
4 измењених фајлова са 6 додато и 6 уклоњено
  1. 3 3
      docs/changelog.rst
  2. 1 1
      src/core/process.h
  3. 1 1
      tools-imgui/level_editor.cpp
  4. 1 1
      tools/level_editor/level_editor.vala

+ 3 - 3
docs/changelog.rst

@@ -52,7 +52,7 @@ Changelog
 * Changing the sprite in the Sprite Renderer component is now reflected to the Runtime.
 * Added noop resources in ``core/components/noop.*``.
 * Changed the fallback shader to output Color4(255, 0, 255, 255).
-* Added the ability to spawn emtpy units.
+* Added the ability to spawn empty units.
 * Added the ability to choose between "Light" and "Dark" theme for the editor UI.
 
 **Lua API**
@@ -208,8 +208,8 @@ Changelog
 
 **Tools**
 
-* Added ability to crate new scripts from Project Browser
-* Added ability to crate new units from Project Browser
+* Added ability to create new scripts from Project Browser
+* Added ability to create new units from Project Browser
 * Added Debug > Build Data
 * Added QWER accelerators to place, move, rotate and scale object actions
 * Added support for Windows

+ 1 - 1
src/core/process.h

@@ -63,7 +63,7 @@ struct Process
 	/// Waits synchronously for the process to terminate and returns its exit code.
 	s32 wait();
 
-	/// Reads at most @a len bytes from the process' output and returns the
+	/// Reads at most @a len bytes from the process's output and returns the
 	/// pointer to the first byte read.
 	/// Returns NULL on EOF or when an error occurs. In case of error, it sets
 	/// @a num_bytes_read to UINT32_MAX, otherwise it sets it to the actual

+ 1 - 1
tools-imgui/level_editor.cpp

@@ -1038,7 +1038,7 @@ struct LevelEditor
 		window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove;
 		window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus;
 
-		// When using ImGuiDockNodeFlags_PassthruCentralNode, DockSpace() will render our background and handle the pass-thru hole, so we ask Begin() to not render a background.
+		// When using ImGuiDockNodeFlags_PassthruCentralNode, DockSpace() will render our background and handle the pass-through hole, so we ask Begin() to not render a background.
 		if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode)
 		    window_flags |= ImGuiWindowFlags_NoBackground;
 

+ 1 - 1
tools/level_editor/level_editor.vala

@@ -2595,7 +2595,7 @@ public static bool is_directory_empty(string path)
 }
 
 /// Waits for @a process to terminate and returns true if success, false
-/// otherwise. If the function succeeds, it also returns the @a process' @a
+/// otherwise. If the function succeeds, it also returns the @a process's @a
 /// exit_status.
 public static int wait_process(out int exit_status, GLib.Subprocess? process)
 {