Elixir: def with doc string
This commit is contained in:
parent
93b4de1299
commit
24bb8a4b18
@ -46,6 +46,13 @@ snippet def
|
||||
def ${1:name} do
|
||||
${0}
|
||||
end
|
||||
snippet defd
|
||||
@doc """
|
||||
${1:doc string}
|
||||
"""
|
||||
def ${2:name} do
|
||||
${0}
|
||||
end
|
||||
snippet defim
|
||||
defimpl ${1:protocol_name}, for: ${2:data_type} do
|
||||
${0}
|
||||
|
Loading…
Reference in New Issue
Block a user