diff --git a/sh/code.awk b/sh/code.awk index c68e746..995174f 100644 --- a/sh/code.awk +++ b/sh/code.awk @@ -108,7 +108,7 @@ BEGIN { } else if (match($0, RE_FUNCTION, m)) { split(doc, array, "\n") for (item in array) { - if (item == target) { + if (array[item] == target) { print m[1] exit }