summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-30 05:56:53 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-30 05:56:53 +0000
commit52a70d99c6ac43879c652bc26c43b38cbe7ac251 (patch)
treec1de608771fe1a0053f7144d39311f0ff9b66c88
parentb2f4548334c9909721aae806db08298014107dd1 (diff)
* vm_core.h: Fix comment about arg_opts of iseq and some typos
* doc/re.rdoc: Rdoc small fixes * iseq.c: Fix comment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--doc/re.rdoc6
-rw-r--r--iseq.c2
-rw-r--r--vm_core.h6
3 files changed, 7 insertions, 7 deletions
diff --git a/doc/re.rdoc b/doc/re.rdoc
index 0dfd8e5164..a52d1a6956 100644
--- a/doc/re.rdoc
+++ b/doc/re.rdoc
@@ -120,7 +120,7 @@ Ruby also supports the following non-POSIX character classes:
* <tt>/[[:word:]]/</tt> - A character in one of the following Unicode
general categories _Letter_, _Mark_, _Number_,
- <i>Connector_Punctuation<i/i>
+ <i>Connector_Punctuation</i>
* <tt>/[[:ascii:]]/</tt> - A character in the ASCII character set
# U+06F2 is "EXTENDED ARABIC-INDIC DIGIT TWO"
@@ -419,8 +419,8 @@ characters, <i>anchoring</i> the match to a specific position.
it matches just before newline
* <tt>\z</tt> - Matches end of string
* <tt>\G</tt> - Matches point where last match finished
-* <tt>\b</tt> - Matches word boundaries when outside brackets; backspace
- (0x08) inside brackets
+* <tt>\b</tt> - Matches word boundaries when outside brackets;
+ backspace (0x08) when inside brackets
* <tt>\B</tt> - Matches non-word boundaries
* <tt>(?=</tt><i>pat</i><tt>)</tt> - <i>Positive lookahead</i> assertion:
ensures that the following characters match <i>pat</i>, but doesn't
diff --git a/iseq.c b/iseq.c
index 7b83b9e6db..639f1ce504 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1496,7 +1496,7 @@ rb_iseq_build_for_ruby2cext(
void
Init_ISeq(void)
{
- /* declare ::VM::InstructionSequence */
+ /* declare ::RubyVM::InstructionSequence */
rb_cISeq = rb_define_class_under(rb_cRubyVM, "InstructionSequence", rb_cObject);
rb_define_alloc_func(rb_cISeq, iseq_alloc);
rb_define_method(rb_cISeq, "inspect", iseq_inspect, 0);
diff --git a/vm_core.h b/vm_core.h
index 0dda1c4901..7211005169 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -200,14 +200,14 @@ struct rb_iseq_struct {
*
* argc = M
* arg_rest = M+N+1 // or -1 if no rest arg
- * arg_opts = N
- * arg_opts_tbl = [ (N entries) ]
+ * arg_opts = N+1 // or 0 if no optional arg
+ * arg_opt_table = [ (arg_opts entries) ]
* arg_post_len = O // 0 if no post arguments
* arg_post_start = M+N+2
* arg_block = M+N + 1 + O + 1 // -1 if no block arg
* arg_simple = 0 if not simple arguments.
* = 1 if no opt, rest, post, block.
- * = 2 if ambiguos block parameter ({|a|}).
+ * = 2 if ambiguous block parameter ({|a|}).
* arg_size = argument size.
*/