Skip to content

Commit 3b5bb69

Browse files
committed
Fix typo.
1 parent 850d932 commit 3b5bb69

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/guides/deserialization/defining.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
6262
end
6363

6464
# or
65-
type # implicitly expanded to `type { |t| field type: t }
65+
type # implicitly expanded to `type { |t| field type: t }`
6666
end
6767
```
6868

@@ -77,11 +77,11 @@ Example:
7777
class DeserializablePost < JSONAPI::Deserializable::Post
7878
# ...
7979
id do |i|
80-
field primary_id: id.to_i
80+
field primary_id: i.to_i
8181
end
8282

8383
# or
84-
id # implicitly expanded to `id { |i| field id: i }
84+
id # implicitly expanded to `id { |i| field id: i }`
8585
end
8686
```
8787

@@ -104,7 +104,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
104104
end
105105

106106
# or
107-
attribute :date # implicitly expanded to `attribute :date { |d| field date: d }
107+
attribute :date # implicitly expanded to `attribute(:date) { |d| field date: d }`
108108
end
109109
```
110110

source/guides/index.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ layout: guides
66
## What is jsonapi-rb?
77
[jsonapi-rb](https://github.com/jsonapi-rb/jsonapi-rb) is a ruby library for
88
producing and consuming [JSON API](http://jsonapi.org) documents. It is cleanly
9-
layered, has an intuitive yet intention-stating API, and no magic.
9+
layered, has an intuitive yet intent-stating API, and no magic.
1010

1111
It is comprised of 4 independent micro-libraries:
1212

0 commit comments

Comments
 (0)