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

ruby-changes:51600

From: kazu <ko1@a...>
Date: Sun, 1 Jul 2018 10:38:18 +0900 (JST)
Subject: [ruby-changes:51600] kazu:r63811 (trunk): [DOC] newer codes recommend to use spaces only

kazu	2018-07-01 10:38:14 +0900 (Sun, 01 Jul 2018)

  New Revision: 63811

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63811

  Log:
    [DOC] newer codes recommend to use spaces only
    
    [Bug #14246]
    [ci skip]

  Modified files:
    trunk/doc/contributing.rdoc
Index: doc/contributing.rdoc
===================================================================
--- doc/contributing.rdoc	(revision 63810)
+++ doc/contributing.rdoc	(revision 63811)
@@ -374,7 +374,8 @@ trunk, or edge Ruby. https://github.com/ruby/ruby/blob/trunk/doc/contributing.rdoc#L374
 
 Here are some general rules to follow when writing Ruby and C code for CRuby:
 
-* Indent 4 spaces for C with tabs for eight-space indentation (emacs default)
+* Indent 4 spaces for C without tabs (old codes might use tabs for eight-space indentation,
+  but newer codes recommend to use spaces only)
 * Indent 2 space tabs for Ruby
 * Do not use TABs in ruby codes
 * ANSI C style for 1.9+ for function declarations

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

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