diff --git a/lib/kernel/doc/src/os.xml b/lib/kernel/doc/src/os.xml
index 9ac0583d0a7a..2fee4b24a055 100644
--- a/lib/kernel/doc/src/os.xml
+++ b/lib/kernel/doc/src/os.xml
@@ -115,8 +115,8 @@
Execute a command in a shell of the target OS.
Executes Command in a command shell of the
- target OS, captures the standard output of the command,
- and returns this result as a string.
+ target OS, captures the standard output and standard error of the
+ command, and returns this result as a string.
Examples:
LsOut = os:cmd("ls"), % on unix platform