From 8ac58943857fb79860a41800d9f37678d544c673 Mon Sep 17 00:00:00 2001 From: James Clark Date: Thu, 28 Mar 2024 08:42:58 +0700 Subject: [PATCH] default-expression not default-value-expression Part of #1240 --- lang/spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/spec.html b/lang/spec.html index 5006f2bc..f8e04685 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -4972,9 +4972,9 @@

Mapping constructor

Default values are added to the mapping value being constructed after fields have been added for every specific-field and spread-field: if the inherent type descriptor is a record type descriptor, then for each field-descriptor with name -f having a default-value-expression, if the mapping value so far +f having a default-expression, if the mapping value so far constructed does not have a field with name f, then the closure for -the default-value-expression is evaluated resulting in a value v, and +the default-expression is evaluated resulting in a value v, and a field with name f and value v is added to the mapping value.