aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Storage.ml
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-09-24 04:25:50 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-09-24 04:26:17 +0000
commit721b1fda713a08bbc4f9a8e50820ce1491e32ff1 (patch)
tree86e405eff57158dda3749ae6efd8edb5c74693c9 /lib/kernel/Storage.ml
parent5a1088413468f171886d39339a8de96697af64c5 (diff)
downloadRNT-721b1fda713a08bbc4f9a8e50820ce1491e32ff1.tar.gz
RNT-721b1fda713a08bbc4f9a8e50820ce1491e32ff1.zip
Actually register the multigroup
Diffstat (limited to '')
-rw-r--r--lib/kernel/Storage.ml4
-rw-r--r--lib/kernel/Storage.mli2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/Storage.ml b/lib/kernel/Storage.ml
index dd06783..665b1a7 100644
--- a/lib/kernel/Storage.ml
+++ b/lib/kernel/Storage.ml
@@ -5,9 +5,9 @@ module Make (S : Abstract.Storage.STORAGE) = struct
loader : S.transaction -> S.address -> ('a, Concepts.Condition.condition) result
}
- let make addr loader = { addr; loader }
+ let make loader addr = { addr; loader }
let address_of { addr; _ } = addr
- let swap { loader; _ } addr = make addr loader
+ let swap { loader; _ } addr = make loader addr
let deref tx { addr; loader } = loader tx addr
end
diff --git a/lib/kernel/Storage.mli b/lib/kernel/Storage.mli
index b8c0e5b..3c036ca 100644
--- a/lib/kernel/Storage.mli
+++ b/lib/kernel/Storage.mli
@@ -2,7 +2,7 @@ module Make : functor (S : Abstract.Storage.STORAGE) -> sig
module Pointer : sig
type 'a t
- val make : S.address -> (S.transaction -> S.address -> ('a, Concepts.Condition.condition) result) -> 'a t
+ val make : (S.transaction -> S.address -> ('a, Concepts.Condition.condition) result) -> S.address -> 'a t
val address_of : 'a t -> S.address
val swap : 'a t -> S.address -> 'a t
val deref : S.transaction -> 'a t -> ('a, Concepts.Condition.condition) result