From 221c3ddc041fea9c9468819ff63e7a4ddd8918b4 Mon Sep 17 00:00:00 2001 From: palo Date: Sat, 28 Oct 2023 00:41:27 +0200 Subject: [PATCH] Fixed small syntax error --- scontrini.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scontrini.rkt b/scontrini.rkt index cda8ad8..097b53e 100644 --- a/scontrini.rkt +++ b/scontrini.rkt @@ -40,7 +40,7 @@ (define (format-pizza pizzas-list) (let ((str "") (price 0) - (all-pizzas-list (hash-ref (get-pizzas-list) 'pizzas))) + (all-pizzas-list (hash-ref (get-all-pizzas) 'pizzas))) (for-each (lambda (pizza-hashmap) (set! str (string-append str (format "~a : ~s\n" (hash-ref pizza-hashmap 'quantity) (hash-ref pizza-hashmap 'name)))) (set! price (+ price (get-price-from-pizza pizza-hashmap all-pizzas-list))))