     cond do
       Map.get(callbacks, {pair, kind}) == behaviour ->
         nil
+
       behaviour not in behaviours ->
-        "got \"@impl #{inspect behaviour}\" for #{format_definition(kind, pair)} " <>
+        "got \"@impl #{inspect(behaviour)}\" for #{format_definition(kind, pair)} " <>
           "but this behaviour was not declared with @behaviour"
+
       true ->
-        "got \"@impl #{inspect behaviour}\" for #{format_definition(kind, pair)} " <>
+        "got \"@impl #{inspect(behaviour)}\" for #{format_definition(kind, pair)} " <>
           "but this behaviour does not specify such callback#{known_callbacks(callbacks)}"
     end
   end

    case value do
      bool when is_boolean(bool) ->
        value
      module when is_atom(module) and module != nil  ->
        # Attempt to compile behaviour but ignore failure (will warn later)
        _ = Code.ensure_compiled(module)
        value
      other ->
        raise ArgumentError,
              "expected the @impl attribute to contain a module or a boolean, got: #{inspect(other)}"
    end
  end


      end

  """
  @spec add_doc(
          module,
          non_neg_integer,
          def_kind | type_kind,
          definition,
          list,
          String.t() | boolean | nil
        ) :: :ok | {:error, :private_doc}
  def add_doc(module, line, kind, function_tuple, signature \\ [], doc)

  def add_doc(_module, _line, kind, _function_tuple, _signature, doc)
