tmpl: no error on characters which are not in template.

This commit is contained in:
k1574 2020-08-30 02:49:33 +05:00
parent f3a63fb85b
commit 1211969dfc

View file

@ -48,9 +48,9 @@ Run(args []string) int {
for _, c := range []rune(s) { for _, c := range []rune(s) {
s, ok := tmpl[c] s, ok := tmpl[c]
if !ok { if !ok {
fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n", /*fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n",
arg0, string(c) ) arg0, string(c) )*/
continue s = string(c)
} }
fmt.Printf("%s", s) fmt.Printf("%s", s)
} }