Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed Dec 15, 2024
1 parent 160fd4a commit 249ae69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fabulous/Array.fs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module ArraySlice =
module Array =
let inline appendOne (v: 'v) (arr: 'v array) =
let res = Array.zeroCreate(arr.Length + 1)
res[..arr.Length - 1] <- arr
res[.. arr.Length - 1] <- arr
res[arr.Length] <- v
res

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous/Components/ComponentContext.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type ComponentContext(initialSize: int) =
if values.Length < count then
let newLength = max (values.Length * 2) count
let newArray = Array.zeroCreate newLength
newArray[..values.Length - 1] <- values
newArray[.. values.Length - 1] <- values
values <- newArray

member this.TryGetValue<'T>(key: int) =
Expand Down

0 comments on commit 249ae69

Please sign in to comment.