Fix comment

This commit is contained in:
Jae Kwon
2018-06-13 23:44:38 -07:00
parent 21726a6853
commit fb7ec62b29

View File

@ -188,7 +188,7 @@ Theoretically it could be used to switch on the format string.
var err2 error = NewError("another kind of error") var err2 error = NewError("another kind of error")
... ...
// Error handling // Error handling
switch err1.Data().(cmn.FmtError).Format { switch err1.Data().(cmn.FmtError).Format() {
case "invalid username %v": ... case "invalid username %v": ...
case "another kind of error": ... case "another kind of error": ...
default: ... default: ...