mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix code example for word_wrap helper.
This commit is contained in:
parent
32f3c272b8
commit
334c43370b
1 changed files with 2 additions and 2 deletions
|
@ -199,10 +199,10 @@ module ActionView
|
|||
# # => Once upon a time
|
||||
#
|
||||
# word_wrap('Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding a successor to the throne turned out to be more trouble than anyone could have imagined...')
|
||||
# # => Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\n a successor to the throne turned out to be more trouble than anyone could have\n imagined...
|
||||
# # => Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\na successor to the throne turned out to be more trouble than anyone could have\nimagined...
|
||||
#
|
||||
# word_wrap('Once upon a time', :line_width => 8)
|
||||
# # => Once upon\na time
|
||||
# # => Once\nupon a\ntime
|
||||
#
|
||||
# word_wrap('Once upon a time', :line_width => 1)
|
||||
# # => Once\nupon\na\ntime
|
||||
|
|
Loading…
Reference in a new issue