Skip to content

Conversation

@numToStr
Copy link
Owner

Syntax

---@private

Input

local U = {}

---@private
---This is a private function which is exported
---But not considered as part of the API
function U.private()
    print('I am private!')
end

---Only this will be documented
function U.ok()
    print('Ok! I am exported')
end

---@private
function U.no_emmy()
    print('Private func with no emmylua!')
end

return U

Output

U.ok()                                                                    *U.ok*
    Only this will be documented

@numToStr numToStr merged commit 4f00536 into master Apr 25, 2022
@numToStr numToStr deleted the private branch April 25, 2022 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants