From 1025335c0cf625153ea26a5c782892f7beb7d87e Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sat, 8 Feb 2025 22:14:03 +0100 Subject: [PATCH 1/2] Update MjXmlModifiers.cs --- unity/Runtime/Importer/MjXmlModifiers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity/Runtime/Importer/MjXmlModifiers.cs b/unity/Runtime/Importer/MjXmlModifiers.cs index d9d74040b7..8408dbfaed 100644 --- a/unity/Runtime/Importer/MjXmlModifiers.cs +++ b/unity/Runtime/Importer/MjXmlModifiers.cs @@ -53,7 +53,7 @@ public void ApplyModifiersToElement(XmlElement element, string elementName=null) CopyAttributesOverwriteExisting(defaultAncestor, aggregateDefaults); } } - // Add the merged attribiutes to the node, without overwriting the existing values. + // Add the merged attributes to the node, without overwriting the existing values. CopyAttributes(aggregateDefaults, element); } @@ -83,7 +83,7 @@ public static IEnumerable GetApplicableDefaultClasses(XmlElement modifie while (element != null) { var className = element.GetStringAttribute("childclass", string.Empty); if (element == modifiedElement) { - // "class" attribute does not partcipate in building of the inheritance tree, and so we're + // "class" attribute does not participate in building of the inheritance tree, and so we're // only considering it if it's defined on the very element we're trying to modify. className = element.GetStringAttribute("class", className); } From 5874c8a8df3ac9dceb816c6da653ad97564666fc Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sat, 8 Feb 2025 22:14:32 +0100 Subject: [PATCH 2/2] Update xml_native_writer_test.cc --- test/xml/xml_native_writer_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/xml/xml_native_writer_test.cc b/test/xml/xml_native_writer_test.cc index d6a784e213..1b8e2eb2ee 100644 --- a/test/xml/xml_native_writer_test.cc +++ b/test/xml/xml_native_writer_test.cc @@ -1408,7 +1408,7 @@ TEST_F(XMLWriterTest, WriteReadCompare) { // ---------------- test CopyBack functionality (decompiler) ------------------ using DecompilerTest = MujocoTest; -TEST_F(DecompilerTest, SavesStatitics) { +TEST_F(DecompilerTest, SavesStatistics) { static constexpr char xml[] = R"( @@ -1432,7 +1432,7 @@ TEST_F(DecompilerTest, SavesStatitics) { mj_deleteModel(model); } -TEST_F(DecompilerTest, DoesntSaveInferredStatitics) { +TEST_F(DecompilerTest, DoesntSaveInferredStatistics) { static constexpr char xml[] = R"(