From 3baa9e8e5f30061e2db477c0491abf913e8bad15 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Sat, 2 Apr 2022 16:57:08 -0400 Subject: [PATCH] fix build issues --- standard/statements.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standard/statements.md b/standard/statements.md index e45ea0ffc..79b4ea02b 100644 --- a/standard/statements.md +++ b/standard/statements.md @@ -280,7 +280,7 @@ declaration_statement ; ``` -A local variable is declared using a *local_variable_declaration* ([§12.6.2](statements.md#1262-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§12.6.3](statements.md#1262-local-constant-declarations)). A local function is declared using a *local_function_declaration* (§local-function-declarations-new-clause). +A local variable is declared using a *local_variable_declaration* ([§12.6.2](statements.md#1262-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§12.6.3](statements.md#1263-local-constant-declarations)). A local function is declared using a *local_function_declaration* (§local-function-declarations-new-clause). ### 12.6.2 Local variable declarations @@ -442,9 +442,9 @@ local_function_body ; ``` -Unless specified otherwise below, the semantics of all grammar elements is the same as for *method_declaration* ([14.6.1](classes.md#1461-general), read in the context of a local function instead of a method. +Unless specified otherwise below, the semantics of all grammar elements is the same as for *method_declaration* ([§14.6.1](classes.md#1461-general), read in the context of a local function instead of a method. -A *local_function_declaration* may include one `async` ([§14.15](classes.md#1415-async-functions)) modifier and one `unsafe` ([§22.1](unsafe_code.md#221-general)) modifier. If the declaration includes the `async` modifier then the return type shall be `void` or a task type ([§14.15.1](classes.md#14151-general)). +A *local_function_declaration* may include one `async` ([§14.15](classes.md#1415-async-functions)) modifier and one `unsafe` ([§22.1](unsafe-code.md#221-general)) modifier. If the declaration includes the `async` modifier then the return type shall be `void` or a task type ([§14.15.1](classes.md#14151-general)). A local function is declared at block scope, and that function may capture variables from the enclosing scope. Each call of the function requires captured variables to be definitely assigned before the call. The compiler shall determine which variables are definitely assigned on return.