published: 28th of January 2021
A comment is descriptive text that will be ignored during compile time. Comments are denoted with the hash # character.
# Define a comment
# Hi im a comment
# Define an inline comment
a = "AAAA dude" # Im an inline comment
# Module and function docs can span multiple lines
defmodule MyModule do
@moduledoc """
This module processes strings
"""
@doc """
processes the given string.
"""
def my_function(s) do
end