You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/block-expr.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -123,12 +123,12 @@ loop {
123
123
> _ConstBlockExpression_ :\
124
124
> `const`_BlockExpression_
125
125
126
-
A *const block* is a variant of a block expression which evaluates in the compiletime 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.
127
127
128
128
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*.
129
129
It also supports type inference so there is no need to specify the type, unlike [constant items].
130
130
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.
132
132
They are desugared to associated constant items with generic parameters in scope.
0 commit comments