comment update

This commit is contained in:
John Guo
2021-05-25 22:16:55 +08:00
parent 5903eb8ceb
commit fab6c4048d
2 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ func init() {
}
}
// CallerPath returns the function name and the absolute file path along with its line
// Caller returns the function name and the absolute file path along with its line
// number of the caller.
func Caller(skip ...int) (function string, path string, line int) {
return CallerWithFilter("", skip...)
}
// CallerPathWithFilter returns the function name and the absolute file path along with
// CallerWithFilter returns the function name and the absolute file path along with
// its line number of the caller.
//
// The parameter <filter> is used to filter the path of the caller.