Skip to content

Commit

Permalink
stdlib: Update shell docs render
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Oct 17, 2024
1 parent f3f5872 commit 67bec05
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/stdlib/test/shell_docs_SUITE_data/file.docs_v1

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

-type io_server() :: pid().

A process handling the I/O protocol.
4 changes: 3 additions & 1 deletion lib/stdlib/test/shell_docs_SUITE_data/kernel_file_type.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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().

Expand Down

0 comments on commit 67bec05

Please sign in to comment.