[erlang-bugs] documentation bug - io

Ulf Wiger <>
Mon Sep 17 16:22:39 CEST 2007


http://www.erlang.org/doc/man/io.html

"setopts([IoDevice,] Opts) -> ok | {error, Reason}

Types:

IoDevice = io_device()
Opts = [Opt]
  Opt = binary | list
Reason = term()

Set options for standard input/output (IoDevice). Possible options are:

binary
    ...
list
    ...
expand_fun
    Provide a function for tab-completion ..."

The 'expand_fun' format is, I assume, {expand_fun, Fun}, but this
is not clearly stated in the documentation, nor is expand_fun
represented in the type grammar.

Otherwise - nice option.  (:

BR,
Ulf W



More information about the erlang-bugs mailing list