Skip to content

Commit

Permalink
Fix typo in AS guide [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Dec 1, 2012
1 parent 0dc1417 commit fb42520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/active_support_core_extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3727,13 +3727,13 @@ Extensions to `Marshal`

Active Support adds constant autoloading support to `load`.

For example, the file cache store deserializes this way:
For example, the file cache store deserializes this way:

```ruby
File.open(file_name) { |f| Marshal.load(f) }
```

If the cached data refers to a constant that is unknown at that point, the autoloading mechanism is triggered and if it succeeds the desarialization is retried transparently.
If the cached data refers to a constant that is unknown at that point, the autoloading mechanism is triggered and if it succeeds the deserialization is retried transparently.

WARNING. If the argument is an `IO` it needs to respond to `rewind` to be able to retry. Regular files respond to `rewind`.

Expand Down

1 comment on commit fb42520

@fxn
Copy link
Member

@fxn fxn commented on fb42520 Dec 1, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.