   end
 
   defp print_spec({{name, _arity}, specs}) do
-    Enum.each specs, fn(spec) ->
-      binary = Macro.to_string Typespec.spec_to_ast(name, spec)
+    Enum.each(specs, fn spec ->
+      binary = Macro.to_string(Typespec.spec_to_ast(name, spec))
       puts_info("@spec #{binary}")
-    end
+    end)
+
     true
   end
 
   defp no_beam(module) do
     case Code.ensure_loaded(module) do
       {:module, _} ->
-        puts_error("Beam code not available for #{inspect module} or debug info is missing, cannot load typespecs")
+        puts_error(
+          "Beam code not available for #{inspect(module)} or debug info is missing, cannot load typespecs"
+        )
+
       {:error, reason} ->
-        puts_error("Could not load module #{inspect module}, got: #{reason}")
+        puts_error("Could not load module #{inspect(module)}, got: #{reason}")
     end
   end
 

    dont_display_result()
  end

  def s({module, function, arity}) when is_atom(module) and is_atom(function) and is_integer(arity) do
    case Typespec.beam_specs(module) do
      nil ->
        no_beam(module)
      specs ->
        printed =
          for {{^function, ^arity}, _} = spec <- specs do

  end

  def t(invalid) do
    puts_error("Invalid arguments for t helper: #{inspect(invalid)}")
    dont_display_result()
  end

  defp print_type_doc(module, type) do
    docs = Code.get_docs(module, :type_docs)
    {_, _, _, content} = Enum.find(docs, fn {{name, _}, _, _, _} -> type == name end)
    if content, do: puts_info(content)
  end

