Skip to content

Commit

Permalink
Replace a sprintf in the Tetris example with a string interpolation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed Jul 4, 2024
1 parent 0c989d0 commit 11bf204
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module View =
[ TextBlock.fontSize 16.
TextBlock.horizontalAlignment HorizontalAlignment.Center
TextBlock.width 350.
TextBlock.text (sprintf "Score: %d " state.score) ] ] ]
TextBlock.text ($"Score: %d{state.score}" ) ] ] ]

let howToPlayView =
StackPanel.create
Expand Down

0 comments on commit 11bf204

Please sign in to comment.