diff options
author | Xavier Noria <fxn@hashref.com> | 2009-09-26 13:02:03 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-09-26 13:02:03 +0200 |
commit | cee2ee808e96b9deca46acae0faa643ba6fe0261 (patch) | |
tree | 8f8cc6e9d5695f1b810815da1931241970ae72d5 /railties | |
parent | cbcdb19a47d0a2fa04c72533a338e14f8926d5c6 (diff) | |
download | rails-cee2ee808e96b9deca46acae0faa643ba6fe0261.tar.gz rails-cee2ee808e96b9deca46acae0faa643ba6fe0261.tar.bz2 rails-cee2ee808e96b9deca46acae0faa643ba6fe0261.zip |
AS guide: touches an example that confounds the indexer
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_overview.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index abb7ca9491..0462b47ec6 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -1382,7 +1382,7 @@ The method +diff+ returns a hash that represents a diff of the receiver and the An important property of this diff hash is that you can retrieve the original hash by applying +diff+ twice: <ruby> -hash1.diff(hash2).diff(hash2) == hash1 +hash.diff(hash2).diff(hash2) == hash1 </ruby> Diffing hashes may be useful for error messages related to expected option hashes for example. |