reflect/protorange: fix typo of func name in comment

Change-Id: I80ffc34e29757e0cbdccdd530404fa215cfaf75f
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/317989
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
This commit is contained in:
sryoya 2021-05-07 23:02:19 +09:00 committed by Joe Tsai
parent c30776bb3b
commit 0e358a402f

View File

@ -298,7 +298,7 @@ func popStep(p *protopath.Values) {
p.Values = p.Values[:len(p.Values)-1]
}
// amendErrors amends the previous error with the current error if it is
// amendError amends the previous error with the current error if it is
// considered more serious. The precedence order for errors is:
// nil < Break < Terminate < previous non-nil < current non-nil
func amendError(prev, curr error) error {