Skip to content

Commit

Permalink
The docs were outdated - fix the text Widget examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcla committed Jun 16, 2019
1 parent a11c4b2 commit 20cf2fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func main() {

helloworld := styled.New(
text.NewFromContentExt(
text.NewContent([]text.TextContentSegment{
text.NewContent([]text.ContentSegment{
text.StyledContent("Hello World", gowid.MakePaletteRef("banner")),
}),
text.Options{
Expand Down
4 changes: 2 additions & 2 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func main() {
}

txt := text.NewFromContentExt(
text.NewContent([]text.TextContentSegment{
text.NewContent([]text.ContentSegment{
text.StyledContent("hello world", gowid.MakePaletteRef("banner")),
}), text.Options{
Align: gowid.HAlignMiddle{},
Expand Down Expand Up @@ -150,7 +150,7 @@ func main() {

helloworld := styled.New(
text.NewFromContentExt(
text.NewContent([]text.TextContentSegment{
text.NewContent([]text.ContentSegment{
text.StyledContent("Hello World", gowid.MakePaletteRef("banner")),
}),
text.Options{
Expand Down

0 comments on commit 20cf2fd

Please sign in to comment.