Mailinglist Archive: yast-devel (30 mails)

< Previous Next >
[yast-devel] Wrong parts of documentation
Hi,
during traversing YCP documentation to continue with proper
implementation builtins in ruby for ruby bindings, I found that some
places are wrong.

First think is select builtin.
In documentation is that if there is wrong typem it should return
default, but in fact it return always nil
try mentioned example on your own:
select ([1, "two"], 0, "no") -> "no"

documentation says "no" but it is nil
http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/select-list.html


Second part is bracket operator, where it missing documentation that it
can be used also for terms.
http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/bracket.html

Josef
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages