Skip to content

Commit f5dfd9b

Browse files
committed
docs: Tweaks to section on constants
1 parent 4155a60 commit f5dfd9b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

doc/tutorial.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -487,17 +487,10 @@ const MY_VECTORY_PASSWORD: [int * 5] = [1, 2, 3, 4, 5];
487487
const MY_STRINGY_PASSWORD: &static/str = "12345";
488488
489489
// Structs
490-
struct Password {
491-
value: int
492-
}
493-
490+
struct Password { value: int }
494491
const MY_STRUCTY_PASSWORD: Password = Password { value: MY_PASSWORD };
495492
~~~
496493

497-
> ***Note:*** Support for compile-time constants and constant
498-
> evaluation is essentially added 'as needed'. You may find that
499-
> things you expect to work do not.
500-
501494
## Operators
502495

503496
Rust's set of operators contains very few surprises. Arithmetic is done with

0 commit comments

Comments
 (0)