diff options
| -rw-r--r-- | chapel.html.markdown | 2 | ||||
| -rw-r--r-- | perl.html.markdown | 2 | 
2 files changed, 2 insertions, 2 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;    } diff --git a/perl.html.markdown b/perl.html.markdown index 17a538e3..08001ab0 100644 --- a/perl.html.markdown +++ b/perl.html.markdown @@ -152,7 +152,7 @@ while (condition) {    ...  } - +my $max = 5;  # for loops and iteration  for my $i (0 .. $max) {    print "index is $i";  | 
