Skip to content

Commit efdc9b6

Browse files
committed
Small editorial updates for const blocks.
1 parent 01c8196 commit efdc9b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expressions/block-expr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ loop {
123123
> _ConstBlockExpression_ :\
124124
>    `const` _BlockExpression_
125125
126-
A *const block* is a variant of a block expression which evaluates in the compile time instead of in the run time.
126+
A *const block* is a variant of a block expression which evaluates at compile-time instead of at runtime.
127127

128128
Const blocks allows you to define a constant value without having to define new [constant items], and thus they are also sometimes referred as *inline consts*.
129129
It also supports type inference so there is no need to specify the type, unlike [constant items].
130130

131-
Const blocks have ability to reference generic parameters in scope, unlike [free][free item] constant items.
131+
Const blocks have the ability to reference generic parameters in scope, unlike [free][free item] constant items.
132132
They are desugared to associated constant items with generic parameters in scope.
133133
For example, this code:
134134

0 commit comments

Comments
 (0)