From 249ae692743f6fdc5705807574dae0d358e55f1d Mon Sep 17 00:00:00 2001 From: Edgar Gonzalez Date: Sun, 15 Dec 2024 13:49:53 +0000 Subject: [PATCH] Format code --- src/Fabulous/Array.fs | 2 +- src/Fabulous/Components/ComponentContext.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fabulous/Array.fs b/src/Fabulous/Array.fs index bc19448e1..4566d93d3 100644 --- a/src/Fabulous/Array.fs +++ b/src/Fabulous/Array.fs @@ -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 diff --git a/src/Fabulous/Components/ComponentContext.fs b/src/Fabulous/Components/ComponentContext.fs index 6fe0e7454..c82f1fc95 100644 --- a/src/Fabulous/Components/ComponentContext.fs +++ b/src/Fabulous/Components/ComponentContext.fs @@ -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) =