Skip to content

Commit

Permalink
docs(examples): update file selection comment in filepicker example
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Mar 3, 2023
1 parent 908b3c0 commit 70955dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/file-picker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 70955dd

Please sign in to comment.