From 69613e6c03809bcb82ffdaee7820df5a0ead7a6f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 29 Nov 2024 19:57:50 -0500 Subject: Tweak serialization syntax --- docs/serialization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/serialization.md b/docs/serialization.md index 9ffb6050..ac3c0bfe 100644 --- a/docs/serialization.md +++ b/docs/serialization.md @@ -25,14 +25,14 @@ because it's a small number. ## Deserializing -To deserialize data, you must provide its type explicitly. The current syntax -is a placeholder, but it looks like this: +To deserialize data, you must provide its type explicitly using the syntax +`deserialize(bytes -> Type)`: ```tomo i := 123 bytes := i:serialized() -roundtripped := DESERIALIZE(bytes):Int +roundtripped := deserialize(bytes -> Int) >> roundtripped = 123 :Int ``` -- cgit v1.2.3