Commit f509b2a3630365301345220da26058a7299b6b69
1 parent
d7b700be
Exists in
master
and in
14 other branches
Updated style in readme
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -142,19 +142,19 @@ Takes a `String`, which is passed to [strftime](http://strfti.me/), or a `Proc`. |
142 | 142 | ## Arrays and Hashes |
143 | 143 | |
144 | 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 | 148 | Supports the same options as above |
149 | 149 | |
150 | 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 | 154 | Count |
155 | 155 | |
156 | 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 | 160 | ## Installation | ... | ... |