mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
minor example fix for Rails 3
This commit is contained in:
@@ -46,10 +46,10 @@ Short docs do not need an explicit "Examples" label to introduce snippets, they
|
||||
# Converts a collection of elements into a formatted string by calling
|
||||
# <tt>to_s</tt> on all elements and joining them.
|
||||
#
|
||||
# Blog.find(:all).to_formatted_s # => "First PostSecond PostThird Post"
|
||||
# Blog.all.to_formatted_s # => "First PostSecond PostThird Post"
|
||||
</ruby>
|
||||
|
||||
On the other hand big chunks of structured documentation may have a separate "Examples" section:
|
||||
On the other hand, big chunks of structured documentation may have a separate "Examples" section:
|
||||
|
||||
<ruby>
|
||||
# ==== Examples
|
||||
|
||||
Reference in New Issue
Block a user