tmpl: no error on characters which are not in template.
This commit is contained in:
parent
f3a63fb85b
commit
1211969dfc
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ Run(args []string) int {
|
|||
for _, c := range []rune(s) {
|
||||
s, ok := tmpl[c]
|
||||
if !ok {
|
||||
fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n",
|
||||
arg0, string(c) )
|
||||
continue
|
||||
/*fmt.Fprintf(os.Stderr, "%s: '%s': no such character in template string\n",
|
||||
arg0, string(c) )*/
|
||||
s = string(c)
|
||||
}
|
||||
fmt.Printf("%s", s)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue