summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPratik Karki <predatoramigo@gmail.com>2019-05-05 22:04:36 +0545
committerGitHub <noreply@github.com>2019-05-05 22:04:36 +0545
commit65a4d56d2a9d33da2e028c16cad29eaf07465810 (patch)
tree4ca97493ccd1656a4ee9f883cf56bb5d96d60da6
parent2dde374091366cb098e5d405daa9c4c4c469b6dc (diff)
parent808e0cadd22b37e78b26802b77c69d605477009b (diff)
Merge pull request #3510 from aditmehta9/patch-1
Updated initialiser
-rw-r--r--chapel.html.markdown2
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;
}