Prevent error "cast discards const qualifier"

This commit is contained in:
Roman Frołow 2021-05-13 13:25:29 +02:00 committed by GitHub
parent be279c78f5
commit 204146261c

View file

@ -32,7 +32,7 @@
// with the "dot syntax", the instance will be automatically
// passed as the "self" parameter:
//
// const my_bar = Bar{ .number = 2000 };
// var my_bar = Bar{ .number = 2000 };
// my_bar.printMe(); // prints "2000"
//
// Okay, you're armed.