Commit f509b2a3630365301345220da26058a7299b6b69

Authored by Andrew Kane
1 parent d7b700be

Updated style in readme

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -142,19 +142,19 @@ Takes a `String`, which is passed to [strftime](http://strfti.me/), or a `Proc`. @@ -142,19 +142,19 @@ Takes a `String`, which is passed to [strftime](http://strfti.me/), or a `Proc`.
142 ## Arrays and Hashes 142 ## Arrays and Hashes
143 143
144 ```ruby 144 ```ruby
145 -users.group_by_day{|u| u.created_at } # or group_by_day(&:created_at) 145 +users.group_by_day { |u| u.created_at } # or group_by_day(&:created_at)
146 ``` 146 ```
147 147
148 Supports the same options as above 148 Supports the same options as above
149 149
150 ```ruby 150 ```ruby
151 -users.group_by_day(time_zone: time_zone){|u| u.created_at } 151 +users.group_by_day(time_zone: time_zone) { |u| u.created_at }
152 ``` 152 ```
153 153
154 Count 154 Count
155 155
156 ```ruby 156 ```ruby
157 -Hash[ users.group_by_day{|u| u.created_at }.map{|k, v| [k, v.size] } ] 157 +Hash[ users.group_by_day { |u| u.created_at }.map { |k, v| [k, v.size] } ]
158 ``` 158 ```
159 159
160 ## Installation 160 ## Installation