Skip to content

Commit 43ff986

Browse files
committed
docs: Fix small typographical errors in #find_or_create_by docs
[ci skip]
1 parent e5d3d78 commit 43ff986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/relation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def first_or_initialize(attributes = nil, &block) # :nodoc:
164164
#
165165
# If creation failed because of a unique constraint, this method will
166166
# assume it encountered a race condition and will try finding the record
167-
# once more If somehow the second find still find no record because a
168-
# concurrent DELETE happened, it will then raise an
167+
# once more. If somehow the second find still does not find a record
168+
# because a concurrent DELETE happened, it will then raise an
169169
# ActiveRecord::RecordNotFound exception.
170170
#
171171
# Please note <b>this method is not atomic</b>, it runs first a SELECT,

0 commit comments

Comments
 (0)