Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6379969

Browse files
committed
Merge pull request rubocop#256 from jvirtanen/fixes/struct-example
Clarify Struct example
2 parents b23266b + 4e73689 commit 6379969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ constructor and comparison operators for you.
16831683
```Ruby
16841684
# good
16851685
class Person
1686-
attr_reader :first_name, :last_name
1686+
attr_accessor :first_name, :last_name
16871687
16881688
def initialize(first_name, last_name)
16891689
@first_name = first_name

0 commit comments

Comments
 (0)