summaryrefslogtreecommitdiff
path: root/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'stack.go')
-rw-r--r--stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stack.go b/stack.go
index d36f0f3..c01e9bd 100644
--- a/stack.go
+++ b/stack.go
@@ -165,8 +165,8 @@ func (s *Stack) preferredSize() (width int, height int, err error) {
}
// 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.
+// In order for a 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.
+ // As above, a Stack with no controls draws nothing and reports no errors; its parent will still size it properly if made stretchy.
return NewStack(Horizontal)
}