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) {
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue