Subject: [PATCH] Correct regexp for flags in 'format' doc string

From: Mattias Engdegård <[email-masked]>
Date: Sun, 26 Jan 2020 15:21:02 +0100

The doc string for 'format' contains

  where field is [0-9]+ followed by a literal dollar "$", flags is
  [+ #-0]+, width is [0-9]+, and precision is a literal period "."
  followed by [0-9]+.

The spec for flags isn't a correct regexp; the hyphen should be last.  This matters, because people copy it into their code without thinking (observed in the wild).

Patch acceptable for emacs-27?