Skip to content

Commit

Permalink
Better comment for saving __SUB__ in a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadrak committed May 13, 2021
1 parent 32b5ab3 commit cfb624f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ to process requests in smaller batches.
# Stop if there are no more URLs
return unless my $url = shift @urls;

# Avoid circular reference
# save __SUB__ for later use in another callback
my $fetch = __SUB__;

# Fetch the next title
Expand Down

0 comments on commit cfb624f

Please sign in to comment.