From 70955dd8dc535ad45adce2e7548c5123c91094f0 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 3 Mar 2023 16:59:53 -0500 Subject: [PATCH] docs(examples): update file selection comment in filepicker example --- examples/file-picker/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/file-picker/main.go b/examples/file-picker/main.go index 5544445a8e..30ecf01af8 100644 --- a/examples/file-picker/main.go +++ b/examples/file-picker/main.go @@ -32,9 +32,9 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var cmd tea.Cmd m.filepicker, cmd = m.filepicker.Update(msg) - // Let's check whether this update the user selected a file. - // If they did select a file, update the model to display. + // Did the user select a file? if didSelect, path := m.filepicker.DidSelectFile(msg); didSelect { + // Get the path of the selected file. m.selectedFile = path }