Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Documentation and Static Analysis

docs_and_static_analysis.livemd

Documentation and Static Analysis

Section

defmodule Math do
  @spec add(String.t(), String.t()) :: String.t()
  def add(string1, string2) when is_binary(string1) and is_binary(string2) do
    string1 <> string2
  end

  @spec add(integer(), integer()) :: integer()
  def add(int1, int2) do
    int1 + int2
  end
end