Skip to content

Commit 46a49c7

Browse files
Merge pull request #98 from ismell/patch-1
Fixed a typo
2 parents 9b0464e + 9422623 commit 46a49c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/WRITE_CONCERN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Write concern is set using the `:safe` option. There are several possible option
99
@collection.save({:doc => 'foo'}, :safe => {:w => 2, :wtimeout => 200})
1010
@collection.save({:doc => 'foo'}, :safe => {:w => 2, :wtimeout => 200, :j => true})
1111

12-
The first, `true`, simply indicates that we should request a response from the server to ensure that to errors have occurred. The second, `{:w => 2}`, forces the server to wait until at least two servers have recorded the write. The third does the same but will time out if the replication can't be completed in 200 milliseconds.
12+
The first, `true`, simply indicates that we should request a response from the server to ensure that no errors have occurred. The second, `{:w => 2}`, forces the server to wait until at least two servers have recorded the write. The third does the same but will time out if the replication can't be completed in 200 milliseconds.
1313
Setting a value for `wtimeout` is encouraged.
1414

1515
Finally, the fourth example forces the journal to sync to disk if journaling is enabled.

0 commit comments

Comments
 (0)