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

ruby-changes:30109

From: naruse <ko1@a...>
Date: Thu, 25 Jul 2013 13:16:24 +0900 (JST)
Subject: [ruby-changes:30109] naruse:r42161 (trunk): fix typo

naruse	2013-07-25 13:16:08 +0900 (Thu, 25 Jul 2013)

  New Revision: 42161

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

  Log:
    fix typo

  Modified files:
    trunk/dir.c

Index: dir.c
===================================================================
--- dir.c	(revision 42160)
+++ dir.c	(revision 42161)
@@ -2126,7 +2126,7 @@ dir_s_home(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/dir.c#L2126
     const char *u = 0;
 
     rb_check_arity(argc, 0, 1);
-    user = (argc > 0) argv[0] : Qnil;
+    user = (argc > 0) ? argv[0] : Qnil;
     if (!NIL_P(user)) {
 	SafeStringValue(user);
 	rb_must_asciicompat(user);

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

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