1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-06 08:39:09 +02:00

add more descriptive comment

This commit is contained in:
Владимир Фетисов
2019-10-08 12:29:37 +03:00
parent be31756a6a
commit 338bcc5cd4

View File

@@ -29,8 +29,8 @@ func (resp *HTTPResponse) Compare(other core.Value) int64 {
return Compare(HTTPResponseType, other.Type())
}
// it's a safe cast because HTTPResponse doesn't implement
// core.Value.
// this is a safe cast. Only *HTTPResponse implements core.Value.
// HTTPResponse does not.
otherResp := other.(*HTTPResponse)
comp := resp.Headers.Compare(otherResp.Headers)