2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-27 04:32:40 +00:00

Merge pull request #2524 from cure/patch-1

Fix typos in documentation of FixTime
This commit is contained in:
rawtaz 2019-12-22 16:36:23 +01:00 committed by GitHub
commit fe430a680a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ func (node *Node) createFifoAt(path string) error {
}
// FixTime returns a time.Time which can safely be used to marshal as JSON. If
// the timestamp is ealier that year zero, the year is set to zero. In the same
// the timestamp is earlier than year zero, the year is set to zero. In the same
// way, if the year is larger than 9999, the year is set to 9999. Other than
// the year nothing is changed.
func FixTime(t time.Time) time.Time {