lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

I have a problem with LDoc.  I have a module like this:



---
-- Some module
-- @module test


return {
    --- 
    -- @function f1
    -- @treturn string
    --   some string
    f1 = function()
        return "some string"
    end,
    
    --- 
    -- @function f2
    -- @treturn string 
    --   some other string
    f2 = function f2()
        return "some other string"
    end
}



LDoc revision aa4cd9d generates this (original HTML attached):



Module test

Some module

Functions

f1 ()
f2 ()


Functions

f1 ()

Returns:

  1. string some string
  2. string some other string
f2 ()

Returns:

    string some other string



I.e. the return type of f2() falsely also appears for f1().  Can anyone tell me if I'm doing something wrong or whether LDoc has an issue here?

Thanks
Thomas W.
Title: Reference

Module test

Some module

Functions

f1 ()
f2 ()


Functions

f1 ()

Returns:

  1. string some string
  2. string some other string
f2 ()

Returns:

    string some other string
generated by LDoc 1.4.3 Last updated 2015-12-22 22:24:43