Skip to content

Commit ee3265f

Browse files
committed
replace wrong claim
Can be used outside of functions: const X: [u8; 1] = { let x: [u8; _] = [0; _]; x };
1 parent 8a5ab80 commit ee3265f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ An :dt:`inferred constant` is a :t:`constant argument` which is inferred
174174
from the surrounding context by using ``_`` (underscore) in its place.
175175

176176
:dp:`fls_Ft5rGeL7QwJM`
177-
An :t:`inferred constant` can only be used inside a :t:`function body`.
177+
An :t:`inferred constant` cannot be used in :t:`item` signatures.
178178

179179
:dp:`fls_7epZNsTYNmgE`
180180
An :t:`inferred constant` cannot be surrounded by ``{}`` (curly braces).

0 commit comments

Comments
 (0)