Fix mistake.

This commit is contained in:
Enyby
2018-07-02 18:40:52 +03:00
committed by GitHub
parent 0b2f11ca5c
commit b5a2bd6bbe

View File

@@ -471,7 +471,7 @@ public class StringLib extends TwoArgFunction {
public void format(Buffer buf, double x) {
String out;
try {
String.format(src, x);
out = String.format(src, x);
} catch (Throwable e) {
out = String.valueOf( x );
}