adddocsref.pl: rename variable to avoid spelling exceptions

This commit is contained in:
Viktor Szakats 2025-07-12 11:18:21 +02:00
parent c79ed59e36
commit 9de25ee030
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 4 additions and 5 deletions

View file

@ -36,9 +36,9 @@ for $f (@ARGV) {
# just ignore preciously added refs
}
elsif($l =~ /^( *).*curl_easy_setopt\([^,]*, *([^ ,]*) *,/) {
my ($prefix, $anc) = ($1, $2);
$anc =~ s/_//g;
print NEW "$prefix/* $docroot/curl_easy_setopt.html#$anc */\n";
my ($prefix, $anchor) = ($1, $2);
$anchor =~ s/_//g;
print NEW "$prefix/* $docroot/curl_easy_setopt.html#$anchor */\n";
print NEW $l;
}
elsif($l =~ /^( *).*(curl_([^\(]*))\(/) {