diff --git a/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_io_device_0_type.txt b/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_io_device_0_type.txt index fffadfd522d6..df625e062e04 100644 --- a/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_io_device_0_type.txt +++ b/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_io_device_0_type.txt @@ -1,5 +1,7 @@ - -type io_device() :: pid() | fd(). + -type io_device() :: io_server() | fd(). - As returned by open/2; pid/0 is a process handling - I/O-protocols. + An IO device as returned by open/2. + + io_server/0 is returned by default and fd/0 is returned if the  + raw option is given. diff --git a/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_type.txt b/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_type.txt index 7e3e626be038..d01090775772 100644 --- a/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_type.txt +++ b/lib/stdlib/test/shell_docs_SUITE_data/kernel_file_type.txt @@ -53,7 +53,9 @@ These types are documented in this module:  {eof, Offset :: integer()} |  bof | cur | eof. - -type io_device() :: pid() | fd(). + -type io_device() :: io_server() | fd(). + + -type io_server() :: pid(). -type fd() :: file_descriptor().