diff options
author | Adit Mehta <aditmehta9@gmail.com> | 2019-04-06 00:03:34 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-06 00:03:34 +0530 |
commit | 808e0cadd22b37e78b26802b77c69d605477009b (patch) | |
tree | b94d244d0624b3ed055f84c5169185b337eb5219 | |
parent | 06a5fd28ab4ac18f321ce006d14158d7ad4dda51 (diff) |
Updated initialiser
-rw-r--r-- | chapel.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |