aboutsummaryrefslogtreecommitdiff
path: root/light.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-08 22:32:45 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-08 22:32:45 -0500
commitca632c436ca03c97e30e9969fecd12000a6911f8 (patch)
treea7331192b9b7cd10b7b312c119274e6147339f31 /light.go
parentabceafb4b9a9551f0c237f3435c3f3d9e0f224d8 (diff)
Fixed documentation capitalization for Light struct.
Diffstat (limited to 'light.go')
-rw-r--r--light.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/light.go b/light.go
index 565feca..ab0afe8 100644
--- a/light.go
+++ b/light.go
@@ -51,17 +51,17 @@ type LightState struct {
XYIncrement *[2]float32 `json:"xy_inc,omitempty"`
}
-// light.Off will turn the light source off
+// Light.Off will turn the light source off
func (self *Light) Off() error {
return SetLightState(self, LightState{On: false})
}
-// light.Off will turn the light source on
+// Light.Off will turn the light source on
func (self *Light) On() error {
return SetLightState(self, LightState{On: true})
}
-// light.Toggle will toggle the light source on and off
+// Light.Toggle will toggle the light source on and off
func (self *Light) Toggle() error {
if self.State.On {
return self.Off()