Permalink
Browse files

Provide consistant indentation for the example code

  • Loading branch information...
1 parent d4832f1 commit 3cbf9a6da568ac5ac06a12ba98113a499dc04c13 @vrish88 vrish88 committed with fxn Jul 24, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 railties/guides/source/api_documentation_guidelines.textile
@@ -78,14 +78,14 @@ The result of expressions follow them and are introduced by "# => ", vertically
If a line is too long, the comment may be placed on the next line:
<ruby>
- # label(:post, :title)
- # # => <label for="post_title">Title</label>
- #
- # label(:post, :title, "A short title")
- # # => <label for="post_title">A short title</label>
- #
- # label(:post, :title, "A short title", :class => "title_label")
- # # => <label for="post_title" class="title_label">A short title</label>
+# label(:post, :title)
+# # => <label for="post_title">Title</label>
+#
+# label(:post, :title, "A short title")
+# # => <label for="post_title">A short title</label>
+#
+# label(:post, :title, "A short title", :class => "title_label")
+# # => <label for="post_title" class="title_label">A short title</label>
</ruby>
Avoid using any printing methods like +puts+ or +p+ for that purpose.

0 comments on commit 3cbf9a6

Please sign in to comment.