Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo authored Apr 10, 2024
1 parent ef1c261 commit afa81d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ immutable_struct_ex is yet another immutable struct. What makes immutable_struct
## Other Immutable Structs

```ruby
# Two steps...
# How OTHER immutable structs declare and instantiate, two steps...
some_immutable_struct = SomeImmutableStruct.new(:first, :last, :phone)
some_immutable_struct.new(first: 'John', last: 'Doe', phone: '(201) 230-7281')

# Chaining...
# How OTHER immutable structs chain...
some_immutable_struct = SomeImmutableStruct.new(:first, :last, :phone)
.new(first: 'John', last: 'Doe', phone: '(201) 230-7281')
```
Expand Down

0 comments on commit afa81d6

Please sign in to comment.