Skip to contentSkip to conversation

examples/skeleton: fix typo in initialization comment

PATCH In review Yang Xiaoliang 2 participants 3 messages Aug 13 – Nov 12

lore
Share & tools
lore
#0 lore raw

v2 cover examples/skeleton: fix typo in initialization comment

Fix "Initializion" typo, should be "Initialization".

v2:
* Wrap the commit message body to fit checkpatch's 75-char line limit (fixes the COMMIT_LOG_LONG_LINE warning from v1)

Yang Xiaoliang (1):
examples/skeleton: fix typo in initialization comment

 doc/guides/sample_app_ug/skeleton.rst | 2 +-
 examples/skeleton/basicfwd.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/1 examples/skeleton: fix typo in initialization comment

Fix "Initializion" typo, should be "Initialization".

The sample app guide includes the comment via literalinclude with :start-after: anchored on the same string, so update both files together to keep the snippet extraction working.

---
 doc/guides/sample_app_ug/skeleton.rst | 2 +-
 examples/skeleton/basicfwd.c          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
doc/guides/sample_app_ug/skeleton.rst +1 -1
index c4a29033fe..8a436b1182 100644
@@ -55,7 +55,7 @@ function. The value returned is the number of parsed arguments:
 
 .. literalinclude:: ../../../examples/skeleton/basicfwd.c
     :language: c
-    :start-after: Initializion the Environment Abstraction Layer (EAL). 8<
+    :start-after: Initialization the Environment Abstraction Layer (EAL). 8<
     :end-before: >8 End of initialization the Environment Abstraction Layer (EAL).
     :dedent: 1
 
examples/skeleton/basicfwd.c +1 -1
index e8c18d5b87..3fdb83519f 100644
@@ -176,7 +176,7 @@ main(int argc, char *argv[])
 	unsigned nb_ports;
 	uint16_t portid;
 
-	/* Initializion the Environment Abstraction Layer (EAL). 8< */
+	/* Initialization the Environment Abstraction Layer (EAL). 8< */
 	int ret = rte_eal_init(argc, argv);
 	if (ret < 0)
 		rte_exit(EXIT_FAILURE, "Error with EAL initialization\n");
Signature · 1 line
2.43.0
#2 lore raw

13/08/2026 18:11, Yang Xiaoliang:

doc/guides/sample_app_ug/skeleton.rst function. The value returned is the number of parsed arguments: · line 59

Quoted 13 lines

Fix "Initializion" typo, should be "Initialization".

The sample app guide includes the comment via literalinclude with :start-after: anchored on the same string, so update both files together to keep the snippet extraction working.

---
.. literalinclude:: ../../../examples/skeleton/basicfwd.c
:language: c

doc/guides/sample_app_ug/skeleton.rst +1 -1
-    :start-after: Initializion the Environment Abstraction Layer (EAL). 8<
+    :start-after: Initialization the Environment Abstraction Layer (EAL). 8<
     :end-before: >8 End of initialization the Environment Abstraction Layer (EAL).

Replaced with "Initialize" and "End of initializing". Applied, thanks.