~eliasnaur/gio-patches

app: clarify documentation of app.Main() v1 PROPOSED

Greg Pomerantz
Greg Pomerantz: 1
 app: clarify documentation of app.Main()

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/9332/mbox | git am -3
Learn more about email & git

[PATCH] app: clarify documentation of app.Main() Export this patch

Greg Pomerantz
Signed-off-by: Greg Pomerantz <gmp.gio@wow.st>
---
 app/doc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/doc.go b/app/doc.go
index 24eef87..bea0823 100644
--- a/app/doc.go
+++ b/app/doc.go
@@ -39,7 +39,7 @@ Main
The Main function must be called from a program's main function, to hand over
control of the main thread to operating systems that need it.

Because Main is also blocking, the event loop of a Window must run in a goroutine.
Because Main is also blocking on some platforms, the event loop of a Window must run in a goroutine.

For example, to display a blank but otherwise functional window:

-- 
2.16.2
Thanks!
View this thread in the archives