summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc.go b/doc.go
index 7487d5e..0a2637a 100644
--- a/doc.go
+++ b/doc.go
@@ -23,10 +23,7 @@ Here is a simple, complete program that asks the user for their name and greets
ui.AppQuit = w.Closing // treat quitting the application like closing the main window
nameField := ui.NewLineEdit("Enter Your Name Here")
button := ui.NewButton("Click Here For a Greeting")
- err := w.Open(ui.NewVerticalStack(nameField, button))
- if err != nil {
- panic(err)
- }
+ w.Open(ui.NewVerticalStack(nameField, button))
for {
select {