From 24bb8a4b183b4e6d65083d2d30d6ee31e1bb9ee3 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 19 Feb 2015 18:01:49 +0000 Subject: [PATCH] Elixir: def with doc string --- snippets/elixir.snippets | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index 077cf03..c13e880 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -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}