The ordering of docstrings in Julia 0.4 is based on the method
signatures, which can sometimes not be all that obvious. They
are not printed in a random order though. It’s best just to not
rely on a specific order in 0.4.

In 0.5 this order has been changed, 
https://github.com/JuliaLang/julia/pull/15266,
to the definition order of the docstrings, which should be much
less surprising.

— Mike
On Thursday, 12 May 2016 10:23:16 UTC+2, Igor Cerovsky wrote:
>
> Hello,
>
> Trying to write documentation according to Julia manual I've found 
> following reversed order of methods for given function; is that a bug?:
> """
>     foo()
>     
> I'm major foo...
> """
> function foo()
> end
>
> "
>     foo(x)
>     
> Here comes additional doc...
> "
> function foo(x)
> end
>
> resulting documentation looks like:
> help?> foo
>   foo(x)
>
>   Here comes additional doc...
>
>   foo()
>
>   I'm major foo...
>
>
>
>

Reply via email to