Skip to content

Commit

Permalink
Also fix typo in example solution
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska committed Sep 2, 2024
1 parent 3417496 commit 7c4af32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/affine-cipher/.meta/example.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule AffineCipher do
@doc """
Decode an encrypted message using a key
"""
@spec decode(key :: key(), message :: String.t()) :: {:ok, String.t()} | {:error, String.t()}
@spec decode(key :: key(), encrypted :: String.t()) :: {:ok, String.t()} | {:error, String.t()}
def decode(%{a: a, b: b}, encrypted) do
if Integer.gcd(a, @alphabet_size) != 1 do
{:error, "a and m must be coprime."}
Expand Down

0 comments on commit 7c4af32

Please sign in to comment.