Skip to content

Commit edc02b8

Browse files
committed
fix docs of exported funcs
1 parent a6c8bb9 commit edc02b8

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

internal/constants/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Package constants contains constants that are used internally across the demoinfocs library.
22
package constants
33

4+
// Various constants tat are used internally.
45
const (
56
MaxEdictBits = 11
67
EntityHandleIndexMask = (1 << MaxEdictBits) - 1

pkg/demoinfocs/common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (ts *TeamState) MoneySpentThisRound() (value int) {
191191
return
192192
}
193193

194-
// MoneySpentThisRound returns the total amount of cash spent by the whole team during the whole game up to the current point.
194+
// MoneySpentTotal returns the total amount of cash spent by the whole team during the whole game up to the current point.
195195
func (ts *TeamState) MoneySpentTotal() (value int) {
196196
for _, pl := range ts.Members() {
197197
value += pl.MoneySpentTotal()

pkg/demoinfocs/common/equipment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ func MapEquipment(eqName string) EquipmentType {
270270
return wep
271271
}
272272

273+
// ZoomLevel contains how far a player is zoomed in.
273274
type ZoomLevel int
274275

276+
// All currently known zoom levels.
275277
const (
276278
ZoomNone ZoomLevel = 0
277279
ZoomHalf ZoomLevel = 1

pkg/demoinfocs/events/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ type BombPlantBegin struct {
289289
BombEvent
290290
}
291291

292-
// BombPlantAbort signals the abortion of a plant.
292+
// BombPlantAborted signals the abortion of a plant.
293293
type BombPlantAborted struct {
294294
Player *common.Player
295295
}

pkg/demoinfocs/sendtables/fake/entity.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
99
)
1010

11+
// NewEntityWithProperty creates and returns an entity with a single mocked property.
1112
func NewEntityWithProperty(name string, val st.PropertyValue) *Entity {
1213
entity := new(Entity)
1314

0 commit comments

Comments
 (0)