summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--haskell.html.markdown2
-rw-r--r--r.html.markdown2
-rw-r--r--ruby.html.markdown60
3 files changed, 32 insertions, 32 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index be7d8669..9847ef2a 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -131,7 +131,7 @@ add 1 2 -- 3
-- with backticks:
1 `add` 2 -- 3
--- You can also define functions that have no characters! This lets
+-- You can also define functions that have no letters! This lets
-- you define your own operators! Here's an operator that does
-- integer division
(//) a b = a `div` b
diff --git a/r.html.markdown b/r.html.markdown
index 5f143150..dd94072b 100644
--- a/r.html.markdown
+++ b/r.html.markdown
@@ -5,7 +5,7 @@ contributors:
filename: learnr.r
---
-R is a statistical computing language. It has lots of good built-in functions for uploading and cleaning data sets, running common statistical tests, and making graphs. You can also easily compile it within a LaTeX document.
+R is a statistical computing language. It has lots of libraries for uploading and cleaning data sets, running statistical procedures, and making graphs. You can also run `R`commands within a LaTeX document.
```python
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 99817982..861a94ad 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -275,36 +275,36 @@ surround { puts 'hello world' }
# Define a class with the class keyword
class Human
- # A class variable. It is shared by all instances of this class.
- @@species = "H. sapiens"
-
- # Basic initializer
- def initialize(name, age=0)
- # Assign the argument to the "name" instance variable for the instance
- @name = name
- # If no age given, we will fall back to the default in the arguments list.
- @age = age
- end
-
- # Basic setter method
- def name=(name)
- @name = name
- end
-
- # Basic getter method
- def name
- @name
- end
-
- # A class method uses self to distinguish from instance methods.
- # It can only be called on the class, not an instance.
- def self.say(msg)
- puts "#{msg}"
- end
-
- def species
- @@species
- end
+ # A class variable. It is shared by all instances of this class.
+ @@species = "H. sapiens"
+
+ # Basic initializer
+ def initialize(name, age=0)
+ # Assign the argument to the "name" instance variable for the instance
+ @name = name
+ # If no age given, we will fall back to the default in the arguments list.
+ @age = age
+ end
+
+ # Basic setter method
+ def name=(name)
+ @name = name
+ end
+
+ # Basic getter method
+ def name
+ @name
+ end
+
+ # A class method uses self to distinguish from instance methods.
+ # It can only be called on the class, not an instance.
+ def self.say(msg)
+ puts "#{msg}"
+ end
+
+ def species
+ @@species
+ end
end