Skip to content

Commit

Permalink
Update getting-started.md
Browse files Browse the repository at this point in the history
fix unexpected newline error
  • Loading branch information
hong6234 committed Mar 2, 2022
1 parent 79f6bc1 commit 061572b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_docs/getting-started.md
Expand Up @@ -214,7 +214,7 @@ func (a *App) Poll(ctx context.Context) (uint, error) {
a.l.Print("What Fibonacci number would you like to know: ")

var n uint
_, err := fmt.Fscanf(a.r, "%d", &n)
_, err := fmt.Fscanf(a.r, "%d\n", &n)

// Store n as a string to not overflow an int64.
nStr := strconv.FormatUint(uint64(n), 10)
Expand Down

0 comments on commit 061572b

Please sign in to comment.