Skip to content

Commit 76ef648

Browse files
Rewrap documentation example for legibility [ci-skip]
1 parent 0e908bb commit 76ef648

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

guides/source/api_documentation_guidelines.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,11 @@ An example with a predicate:
227227
```ruby
228228
# Returns true if the collection is empty.
229229
#
230-
# If the collection has been loaded
231-
# it is equivalent to <tt>collection.size.zero?</tt>. If the
232-
# collection has not been loaded, it is equivalent to
233-
# <tt>!collection.exists?</tt>. If the collection has not already been
234-
# loaded and you are going to fetch the records anyway it is better to
235-
# check <tt>collection.length.zero?</tt>.
230+
# If the collection has been loaded it is equivalent to
231+
# +collection.size.zero?+. If the collection has not been loaded,
232+
# it is equivalent to +!collection.exists?+. If the collection has
233+
# not already been loaded and you are going to fetch the records
234+
# anyway it is better to check +collection.length.zero?+.
236235
def empty?
237236
if loaded?
238237
size.zero?

0 commit comments

Comments
 (0)