Skip to content

Commit

Permalink
Merge pull request #4 from capitalist/patch-1
Browse files Browse the repository at this point in the history
Explicitly mark slice range as increasing in Magma.Utils.extract_link_text/1
  • Loading branch information
marcelotto committed Nov 9, 2023
2 parents 01c74d7 + f5e1e69 commit f8d1f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/magma/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ defmodule Magma.Utils do
"""
def extract_link_text("[[" <> string) do
String.slice(string, 0..-3)
String.slice(string, 0..-3//1)
end

def extract_link_text(_), do: nil
Expand Down

0 comments on commit f8d1f1b

Please sign in to comment.