1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] newer codes recommend to use spaces only

[Bug #14246]
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-07-01 01:38:14 +00:00
parent 5235d57b07
commit 36fa6af2e8

View file

@ -374,7 +374,8 @@ trunk, or edge Ruby.
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