aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/go/types/assignments.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/types/assignments.go')
-rw-r--r--libgo/go/go/types/assignments.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/go/types/assignments.go b/libgo/go/go/types/assignments.go
index 18f893d4781..e5ea071e864 100644
--- a/libgo/go/go/types/assignments.go
+++ b/libgo/go/go/types/assignments.go
@@ -219,7 +219,7 @@ func (check *Checker) initVars(lhs []*Var, rhs []ast.Expr, returnPos token.Pos)
check.errorf(returnPos, "wrong number of return values (want %d, got %d)", l, r)
return
}
- check.errorf(rhs[0].Pos(), "assignment count mismatch (%d vs %d)", l, r)
+ check.errorf(rhs[0].Pos(), "cannot initialize %d variables with %d values", l, r)
return
}
@@ -253,7 +253,7 @@ func (check *Checker) assignVars(lhs, rhs []ast.Expr) {
}
if l != r {
check.useGetter(get, r)
- check.errorf(rhs[0].Pos(), "assignment count mismatch (%d vs %d)", l, r)
+ check.errorf(rhs[0].Pos(), "cannot assign %d values to %d variables", r, l)
return
}