From 808e0cadd22b37e78b26802b77c69d605477009b Mon Sep 17 00:00:00 2001 From: Adit Mehta Date: Sat, 6 Apr 2019 00:03:34 +0530 Subject: Updated initialiser --- chapel.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapel.html.markdown') diff --git a/chapel.html.markdown b/chapel.html.markdown index 354cd832..7e8fc41a 100644 --- a/chapel.html.markdown +++ b/chapel.html.markdown @@ -708,7 +708,7 @@ class MyClass { // We also get the compiler-generated initializer, with one argument per field. // Note that soon there will be no compiler-generated initializer when we // define any initializer(s) explicitly. - proc MyClass(val : real) { + proc init(val : real) { this.memberInt = ceil(val): int; } -- cgit v1.2.3