From 15b6b1dd7d9d6134e49d5f3d2ad7e17e2c2452a6 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 16 Oct 2020 11:23:37 -0400 Subject: [PATCH] Pull some extraneous parens in the basics tutorial --- README.md | 2 +- tutorials/basics/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2d9285..7fd3922 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ var initialModel = model{ selected: make(map[int]struct{}), } -func (m model) Init() (tea.Cmd) { +func (m model) Init() tea.Cmd { // Just return `nil`, which means "no I/O right now, please." return m, nil } diff --git a/tutorials/basics/README.md b/tutorials/basics/README.md index b86b24a..d4ad86a 100644 --- a/tutorials/basics/README.md +++ b/tutorials/basics/README.md @@ -69,7 +69,7 @@ var initialModel = model{ selected: make(map[int]struct{}), } -func (m model) Init() (tea.Cmd) { +func (m model) Init() tea.Cmd { // Just return `nil`, which means "no I/O right now, please." return m, nil }