diff options
author | Amru Eliwat <amru.eliwat@ensighten.com> | 2015-10-23 23:13:29 -0700 |
---|---|---|
committer | Amru Eliwat <amru.eliwat@ensighten.com> | 2015-10-23 23:13:29 -0700 |
commit | 9aad08bf78196758a568ec1272c94029221c2dd5 (patch) | |
tree | 0cb8c9b44e56babb2a4cdfc7ca9c742ba7c5d8f2 | |
parent | ab67a8f4c29309d7fd5e0b1bd3255fe695beb8cf (diff) |
Fixed typos for 'overriding' and 'reference' and fixed formatting issue that may have caused confusion
-rw-r--r-- | d.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/d.html.markdown b/d.html.markdown index 80c1dc65..6f3710ab 100644 --- a/d.html.markdown +++ b/d.html.markdown @@ -199,8 +199,8 @@ our getter and setter methods, and keep the clean syntax of accessing members directly! Other object-oriented goodies at our disposal -include `interface`s, `abstract class`es, -and `override`ing methods. D does inheritance just like Java: +include interfaces, abstract classes, +and overriding methods. D does inheritance just like Java: Extend one class, implement as many interfaces as you please. We've seen D's OOP facilities, but let's switch gears. D offers @@ -247,7 +247,7 @@ void main() { // and take advantage of as many cores as we have available. auto arr = new double[1_000_000]; - // Use an index, and an array element by referece, + // Use an index, and an array element by reference, // and just call parallel on the array! foreach(i, ref elem; parallel(arr)) { ref = sqrt(i + 1.0); |