File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
23
23
- Delegated instruments are unwrapped before delegating Callbacks. (#2784 )
24
24
- Resolve supply-chain failure for the markdown-link-checker GitHub action by calling the CLI directly. (#2834 )
25
25
- Remove import of ` testing ` package in non-tests builds. (#2786 )
26
+ - modify the Fscanf function param in example/fib/app.go line:69 to avoid process break by "unexpected newline"
26
27
27
28
### Changed
28
29
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func (a *App) Poll(ctx context.Context) (uint, error) {
66
66
a .l .Print ("What Fibonacci number would you like to know: " )
67
67
68
68
var n uint
69
- _ , err := fmt .Fscanf (a .r , "%d" , & n )
69
+ _ , err := fmt .Fscanf (a .r , "%d\n " , & n )
70
70
if err != nil {
71
71
span .RecordError (err )
72
72
span .SetStatus (codes .Error , err .Error ())
You can’t perform that action at this time.
0 commit comments