signature: improve Signature.Offset docs

Use standard godoc style; be more precise.
This commit is contained in:
Josh Bleecher Snyder 2018-01-25 15:59:00 -08:00
parent 432a164805
commit cf2379295a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func newSignatureFromC(sig *C.git_signature) *Signature {
}
}
// the offset in mintes, which is what git wants
// Offset returns the time zone offset of v.When in minutes, which is what git wants.
func (v *Signature) Offset() int {
_, offset := v.When.Zone()
return offset / 60