mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
Merge pull request #54 from rofrol/patch-2
Prevent error "cast discards const qualifier"
This commit is contained in:
commit
4bd737d506
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
// with the "dot syntax", the instance will be automatically
|
// with the "dot syntax", the instance will be automatically
|
||||||
// passed as the "self" parameter:
|
// passed as the "self" parameter:
|
||||||
//
|
//
|
||||||
// const my_bar = Bar{ .number = 2000 };
|
// var my_bar = Bar{ .number = 2000 };
|
||||||
// my_bar.printMe(); // prints "2000"
|
// my_bar.printMe(); // prints "2000"
|
||||||
//
|
//
|
||||||
// Okay, you're armed.
|
// Okay, you're armed.
|
||||||
|
|
Loading…
Reference in a new issue