Skip to content

Commit 0d6b21e

Browse files
committed
send-email: fix grammo in the prompt that asks e-mail recipients
The message, which dates back to the very original version 83b2443 made in 2005, sounds clumsy, grammatically incorrect, and is hard to understand. Reported-by: John Darrington <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit 0d6b21e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-send-email.perl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,10 @@ sub file_declares_8bit_cte {
785785
# But it's a no-op to run sanitize_address on an already sanitized address.
786786
$sender = sanitize_address($sender);
787787

788+
my $to_whom = "To whom should the emails be sent (if anyone)?";
788789
my $prompting = 0;
789790
if (!@initial_to && !defined $to_cmd) {
790-
my $to = ask("Who should the emails be sent to (if any)? ",
791+
my $to = ask("$to_whom ",
791792
default => "",
792793
valid_re => qr/\@.*\./, confirm_only => 1);
793794
push @initial_to, parse_address_line($to) if defined $to; # sanitized/validated later
@@ -885,7 +886,7 @@ sub validate_address {
885886
cleanup_compose_files();
886887
exit(0);
887888
}
888-
$address = ask("Who should the email be sent to (if any)? ",
889+
$address = ask("$to_whom ",
889890
default => "",
890891
valid_re => qr/\@.*\./, confirm_only => 1);
891892
}

0 commit comments

Comments
 (0)