diff options
author | Michael Muré <batolettre@gmail.com> | 2022-03-10 16:27:22 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-03-10 16:30:27 +0100 |
commit | b11679bc80b115c61a5cdee8ff8b5f8f1f69533d (patch) | |
tree | 956495036e383caab11006239e31e591436a33cd /bug/snapshot.go | |
parent | df55cc49a85eaf3a2d3c2ceb1fbcccac19fa6eb8 (diff) | |
download | git-bug-b11679bc80b115c61a5cdee8ff8b5f8f1f69533d.tar.gz |
Fix a bunch of comments and documentations
Diffstat (limited to 'bug/snapshot.go')
-rw-r--r-- | bug/snapshot.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go index ce84cce1..d73e4bb6 100644 --- a/bug/snapshot.go +++ b/bug/snapshot.go @@ -26,7 +26,7 @@ type Snapshot struct { Operations []Operation } -// Return the Bug identifier +// Id returns the Bug identifier func (snap *Snapshot) Id() entity.Id { if snap.id == "" { // simply panic as it would be a coding error (no id provided at construction) @@ -35,7 +35,7 @@ func (snap *Snapshot) Id() entity.Id { return snap.id } -// Return the last time a bug was modified +// EditTime returns the last time a bug was modified func (snap *Snapshot) EditTime() time.Time { if len(snap.Operations) == 0 { return time.Unix(0, 0) |