From 66e896907c3ac716a5821440a1379c215a7578d0 Mon Sep 17 00:00:00 2001 From: Jarkko Saltiola Date: Wed, 13 Nov 2024 03:44:54 +0200 Subject: [PATCH] add missing `)` --- content/documentation/data-structures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/documentation/data-structures.md b/content/documentation/data-structures.md index afb2b1a9..02817641 100644 --- a/content/documentation/data-structures.md +++ b/content/documentation/data-structures.md @@ -130,7 +130,7 @@ A Struct is a special kind of Map. It only supports a predefined number of keys (let [x (my-struct 1 2 3)] # Create a new struct (my-struct? x) # Evaluates to true (get x :a) # Evaluates to 1 - (put x :a 12) # Evaluates to (my-struct 12 2 3) + (put x :a 12)) # Evaluates to (my-struct 12 2 3) ``` Internally, Phel Structs are PHP classes where each key correspondence to an object property. Therefore, Structs can be faster than Maps.