Skip to content

Commit 5287fbe

Browse files
committed
Fix headings
1 parent c1a8623 commit 5287fbe

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

en/documentation/faq/1/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Ruby features:
6262
* High transportability (runs on various Unices, Windows, DOS, OSX, OS/2,
6363
Amiga, and so on)
6464

65-
### Show me some Ruby code.
65+
### Show me some Ruby code!
6666

6767
Let's define a class called Person, with a name and an age. We'll test our
6868
code by creating a few people and examining them.
@@ -121,7 +121,7 @@ Another way would be to change the comparison method for class Person:
121121
end
122122
people.sort # -> [elmo (4), zoe (7), bert (8), ernie (8), cookie (11)]
123123

124-
### Why the name 'Ruby'?
124+
### Why the name Ruby?
125125

126126
Influenced by Perl, Matz wanted to use a jewel name for his new language, so
127127
he named Ruby after a colleague's birthstone.
@@ -192,7 +192,7 @@ You can search the mailing list archives using
192192
http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml.
193193
(This is the url for the ruby-talk list: munge as required for the others).
194194

195-
1.8 **Changed** How can I thread the mailing list in mutt?
195+
### How can I thread the mailing list in mutt?
196196

197197
The Ruby mailing list software adds a prefix to the subject lines, for example
198198
[ruby-talk:1234]. This can confuse the threading in some mail user agents.
@@ -202,7 +202,7 @@ In mutt, you can get threading to work using the following variable setting.
202202
# reply regexp, to support MLs like ruby-talk.
203203
set reply_regexp="^(\[[a-z0-9:-]+\][[:space:]]*)?(re([\[0-9\]+])*|aw):[[:space:]]*"
204204

205-
### Which is correct, Ruby or ruby?
205+
### Which is correct, Ruby or ruby?
206206

207207
Officially, the language is called ``Ruby''. On most systems, it is invoked
208208
using the command ``ruby''. It's OK to use ruby instead of Ruby.
@@ -232,7 +232,7 @@ that covers the art and implementation of regular expressions in various
232232
programming languages. Most of it is highly relevant to Ruby regular
233233
expressions.
234234

235-
### Which editors provide support for Ruby.
235+
### Which editors provide support for Ruby?
236236

237237
* Emacs or XEmacs: ruby-mode.el is supplied in the Ruby distribution.
238238
With some versions of XEmacs, you may need to add (load "font-lock") to your

en/documentation/faq/3/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ configure options using:
9999
If you are working from the CVS archive, you may need to run autoconf before
100100
running configure.
101101

102-
### **Changed** How do I tell Ruby where my libraries are?
102+
### How do I tell Ruby where my libraries are?
103103

104104
On some systems, the build process may fail to find libraries used by
105105
extension modules (for example the dbm libraries).
@@ -152,7 +152,7 @@ Reuben Thomas writes:
152152
> I do provide a binary distribution of 1.4.3 for the Acorn at
153153
> http://www.cl.cam.ac.uk/users/rrt1001/ruby.zip.
154154
155-
### What's all this 'cygwin', 'mingw', and 'djgpp' stuff?
155+
### What's all this cygwin”, “mingw, and djgpp stuff?
156156

157157
Ruby is written to take advantage of the rich feature set of a Unix
158158
environment. Unfortunately, Windows is missing some of the functions, and

en/documentation/faq/4/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ and to make the object do something. You can do this with objects passed to
218218
methods. You need to be careful when doing this, as these kinds of side
219219
effects can make programs hard to follow.
220220

221-
### What does ``*'' prepended to an argument mean?
221+
### What does `*` prepended to an argument mean?
222222

223223
When used as part of a formal parameter list, the asterisk allows arbitrary
224224
numbers of arguments to be passed to a method by collecting them into an
@@ -260,7 +260,7 @@ For example:
260260
x = [7, 8, 9]
261261
x # -> [7, 8, 9]
262262

263-
### What does ``&'' prepended to an argument mean?
263+
### What does `&` prepended to an argument mean?
264264

265265
If the last formal argument of a method is preceeded with an ampersand,
266266
a block following the method call will be converted into a Proc object

en/documentation/faq/6/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ header: |
3535

3636
## Syntax
3737

38-
### What does :var mean?
38+
### What does `:var` mean?
3939

4040
A colon followed by a name generates an integer(Fixnum) called a symbol
4141
which corresponds one to one with the identifier. "var".intern gives the
@@ -80,7 +80,7 @@ may then call.
8080
m = d.method(:meth) # -> #<Method: Demo(Demo)#meth>
8181
m.call # -> "Hello, world"
8282

83-
### Is loop a control structure?
83+
### Is `loop` a control structure?
8484

8585
Although loop looks like a control structure, it is actually a method defined
8686
in Kernel. The block which follows introduces a new scope for local variables.
@@ -115,7 +115,7 @@ all the time. In this case, `a +b` is parsed as `a(+b)`. Remove the space
115115
to the left of `+` or add a space to the right of `+,` and it will be parsed
116116
as an addition.
117117

118-
### `s = "x"; puts s *10` gives an error.
118+
### `s = "x"; puts s *10` gives an error!
119119

120120
Again, Ruby sees the asymmetrical space and parses it as `puts(s(*10))`
121121
(which isn't too smart, really). Use `s*10` or `s * 10` to get the desired
@@ -127,7 +127,7 @@ The {} is parsed as a block, not a Hash constructor. You can force the {}
127127
to be treated as an expression by making the fact that it's a parameter
128128
explicit: `p({})`.
129129

130-
### I can't get def pos=(val) to work.
130+
### I can't get `def pos=(val)` to work!
131131

132132
I have the following code, but I cannot use the method pos = 1.
133133

@@ -147,7 +147,7 @@ transformed and other combinations remain unchanged.
147147
However, in a doubled quoted string, "\1" is the byte \001, while "\\1"
148148
is the two character string containing a backslash and the character "1".
149149

150-
### What's the difference between `or` and `||`?
150+
### What is the difference between `or` and `||`?
151151

152152
Q: `p(nil || "Hello")` prints `"Hello"`, while `p(nil or "Hello")` gives a
153153
parse error.

0 commit comments

Comments
 (0)