From 69dbd37370718514cbeb0704e7bd7f072deb5ce3 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Wed, 22 Jan 2025 12:18:47 -0500 Subject: [PATCH] docs: Update function name in SystemStatus.Alerts docs to be linkable (#2340) Elixir docs will add a link to a function's docs if it's referenced like `active_on_day?/2`, but not if it's referenced like `&active_on_day?/2`. Thus, what I had thought was a link wasn't. This fixes that. --- lib/dotcom/system_status/alerts.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dotcom/system_status/alerts.ex b/lib/dotcom/system_status/alerts.ex index 1bdd6d70e3..7511878fbc 100644 --- a/lib/dotcom/system_status/alerts.ex +++ b/lib/dotcom/system_status/alerts.ex @@ -66,8 +66,7 @@ defmodule Dotcom.SystemStatus.Alerts do end @doc """ - Given a list of alerts, filters only the ones that are active today, as defined in `&active_on_day?/2`. - See that function for details + Given a list of alerts, filters only the ones that are active today, as defined in `active_on_day?/2`. """ def for_day(alerts, datetime) do Enum.filter(alerts, &active_on_day?(&1, datetime))