summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--button.go3
-rw-r--r--stack.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/button.go b/button.go
index e303ef4..cd0d70b 100644
--- a/button.go
+++ b/button.go
@@ -7,7 +7,8 @@ import (
// A Button represents a clickable button with some text.
type Button struct {
- // This channel gets a message when the button is clicked. Unlike other channels in this package, this channel is initialized to non-nil when creating a new button, and cannot be set to nil later.
+ // This channel gets a message when the button is clicked.
+ // Unlike other channels in this package, this channel is initialized to non-nil when creating a new button, and cannot be set to nil later.
Clicked chan struct{}
lock sync.Mutex
diff --git a/stack.go b/stack.go
index 8f8808a..d36f0f3 100644
--- a/stack.go
+++ b/stack.go
@@ -164,7 +164,7 @@ func (s *Stack) preferredSize() (width int, height int, err error) {
return
}
-// Space() returns a null control intended for padding layouts with blank space where otherwise impossible (for instance, at the beginning or in the middle of a Stack).
+// Space returns a null control intended for padding layouts with blank space where otherwise impossible (for instance, at the beginning or in the middle of a Stack).
// In order for Space() to work, it must be marked as stretchy in its parent layout; otherwise its size is undefined.
func Space() Control {
// As above, a stack with no controls draws nothing and reports no errors; its parent will still size it properly.