[前][次][番号順一覧][スレッド一覧]

ruby-changes:30500

From: kazu <ko1@a...>
Date: Fri, 16 Aug 2013 14:19:14 +0900 (JST)
Subject: [ruby-changes:30500] kazu:r42579 (trunk): fix typos

kazu	2013-08-16 14:19:08 +0900 (Fri, 16 Aug 2013)

  New Revision: 42579

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42579

  Log:
    fix typos

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 42578)
+++ parse.y	(revision 42579)
@@ -10194,7 +10194,7 @@ rb_enc_symname_p(const char *name, rb_en https://github.com/ruby/ruby/blob/trunk/parse.y#L10194
 #define IDSET_ATTRSET_FOR_INTERN (~(~0U<<ID_SCOPE_MASK) & ~(1U<<ID_ATTRSET))
 
 static int
-rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_atttset)
+rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset)
 {
     const char *m = name;
     const char *e = m + len;
@@ -10278,7 +10278,7 @@ rb_enc_symname_type(const char *name, lo https://github.com/ruby/ruby/blob/trunk/parse.y#L10278
 	    ++m;
 	    break;
 	  case '=':
-	    if (!(allowed_atttset & (1U << type))) return -1;
+	    if (!(allowed_attrset & (1U << type))) return -1;
 	    type = ID_ATTRSET;
 	    ++m;
 	    break;
@@ -10295,11 +10295,11 @@ rb_enc_symname2_p(const char *name, long https://github.com/ruby/ruby/blob/trunk/parse.y#L10295
 }
 
 static int
-rb_str_symname_type(VALUE name, unsigned int allowed_atttset)
+rb_str_symname_type(VALUE name, unsigned int allowed_attrset)
 {
     const char *ptr = StringValuePtr(name);
     long len = RSTRING_LEN(name);
-    int type = rb_enc_symname_type(ptr, len, rb_enc_get(name), allowed_atttset);
+    int type = rb_enc_symname_type(ptr, len, rb_enc_get(name), allowed_attrset);
     RB_GC_GUARD(name);
     return type;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]