diff --git a/README.md b/README.md index 3b9f9b8..34628a5 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ the operation of a `WidgetCombinator` during operation. For example> type fWidget struct { l Layout } func NewfWidget(l layout) fWidget { return fWidget{ l: l } } -func (f Flex) Flexible(v float32) Widget { +func Flexible(v float32) Widget { return NewfWidget(func(ctx Context) Context { ctx.extra["Flexible"] = v return ctx