aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-05-22 08:44:42 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-05-22 08:44:42 +0900
commitd414881a342d849d65810a037c0b1baff8538e41 (patch)
treee7ee3259964be5563982ba416c60b644b789449d
parente96c7f2775f6b3df485cac87b4949c1baa233e18 (diff)
downloadrails-d414881a342d849d65810a037c0b1baff8538e41.tar.gz
rails-d414881a342d849d65810a037c0b1baff8538e41.tar.bz2
rails-d414881a342d849d65810a037c0b1baff8538e41.zip
We always + 1 to __LINE__ when class_evaling with <<
[ci skip]
-rw-r--r--guides/source/api_documentation_guidelines.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/api_documentation_guidelines.md b/guides/source/api_documentation_guidelines.md
index 3c61754982..c3c7367304 100644
--- a/guides/source/api_documentation_guidelines.md
+++ b/guides/source/api_documentation_guidelines.md
@@ -281,7 +281,7 @@ Methods created with `(module|class)_eval(STRING)` have a comment by their side
```ruby
for severity in Severity.constants
- class_eval <<-EOT, __FILE__, __LINE__
+ class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{severity.downcase}(message = nil, progname = nil, &block) # def debug(message = nil, progname = nil, &block)
add(#{severity}, message, progname, &block) # add(DEBUG, message, progname, &block)
end # end