From d1b043200107e1755ed37618d3237d2c35d204dd Mon Sep 17 00:00:00 2001
From: German <28149841+germa89@users.noreply.github.com>
Date: Wed, 27 Nov 2024 09:03:25 +0000
Subject: [PATCH] fix: components typo

---
 doc/source/user_guide/components.rst | 2 +-
 src/ansys/mapdl/core/component.py    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/source/user_guide/components.rst b/doc/source/user_guide/components.rst
index 3c606eb099..a83a599346 100644
--- a/doc/source/user_guide/components.rst
+++ b/doc/source/user_guide/components.rst
@@ -36,7 +36,7 @@ Set a component without specifying the type, by default it is ``NODE``:
    >>> mapdl.components["mycomp4"] = (1, 2, 3)
    /Users/german.ayuso/pymapdl/src/ansys/mapdl/core/component.py:347: UserWarning: Assuming   a KP selection.
    It is recommended you use the following notation to avoid this warning:
-   > mapdl.components['mycomp4'] = 'KP' (1, 2, 3)
+   > mapdl.components['mycomp4'] = 'KP', (1, 2, 3)
    Alternatively, you disable this warning using:
    > mapdl.components.default_entity_warning=False
    warnings.warn(
diff --git a/src/ansys/mapdl/core/component.py b/src/ansys/mapdl/core/component.py
index d04fbcc392..21bc4765c0 100644
--- a/src/ansys/mapdl/core/component.py
+++ b/src/ansys/mapdl/core/component.py
@@ -74,7 +74,7 @@
 warning_entity = (
     "Assuming a {default_entity} selection.\n"
     "It is recommended you use the following notation to avoid this warning:\n"
-    ">>> mapdl.components['{key}'] = '{default_entity}' {value}\n"
+    ">>> mapdl.components['{key}'] = '{default_entity}', {value}\n"
     "Alternatively, you disable this warning using:\n"
     ">>> mapdl.components.default_entity_warning=False"
 )
@@ -204,7 +204,7 @@ class ComponentManager:
     >>> mapdl.components["mycomp4"] = (1, 2, 3)
     /Users/german.ayuso/pymapdl/src/ansys/mapdl/core/component.py:282: UserWarning: Assuming a NODES selection.
     It is recommended you use the following notation to avoid this warning:
-    \>\>\> mapdl.components['mycomp3'] = 'NODES' (1, 2, 3)
+    \>\>\> mapdl.components['mycomp3'] = 'NODES', (1, 2, 3)
     Alternatively, you disable this warning using:
     > mapdl.components.default_entity_warning=False
     warnings.warn(