From db54e1be3a52d823ddda33991d1aa9b8d897b941 Mon Sep 17 00:00:00 2001 From: MareStare Date: Tue, 18 Mar 2025 00:07:45 +0200 Subject: [PATCH] Add more clarity for why the `-1` decision was made Co-authored-by: liamwhite --- lib/philomena/autocomplete/generator.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/autocomplete/generator.ex b/lib/philomena/autocomplete/generator.ex index 7f7ffbb5..b559f873 100644 --- a/lib/philomena/autocomplete/generator.ex +++ b/lib/philomena/autocomplete/generator.ex @@ -25,7 +25,7 @@ defmodule Philomena.Autocomplete.Generator do // If >=0 then this tag is canonical and the `meta` is the number of images with this tag // - // If <0 then the following calculation: `-meta - 1` and will give the index + // If <0 then `-meta - 1` (to allow 0 as a possibility for the target) will give the index // of a `tag_reference` for the canonical tag aliased by this one // in the `primary_references` array int32_t meta;