Skip to content

Commit

Permalink
Cleanup code examples in README
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Mar 26, 2019
1 parent 68df22b commit 225107e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Stripping the prefix from element names is enabled with
`shouldProcessNamespaces` property:

```swift
private struct Table: Codable, Equatable {
struct Table: Codable, Equatable {
struct TR: Codable, Equatable {
let td: [String]
}
Expand Down Expand Up @@ -100,7 +100,7 @@ protocol DynamicNodeDecoding: Decodable {
The values returned by corresponding `static` functions look like this:

```swift
public enum NodeDecoding {
enum NodeDecoding {
// decodes a value from an attribute
case attribute

Expand Down Expand Up @@ -128,12 +128,12 @@ Add conformance to an appropriate protocol for types you'd like to customize.
Accordingly, this example code:

```swift
private struct Book: Codable, Equatable, DynamicNodeEncoding {
struct Book: Codable, Equatable, DynamicNodeEncoding {
let id: UInt
let title: String
let categories: [Category]

private enum CodingKeys: String, CodingKey {
enum CodingKeys: String, CodingKey {
case id
case title
case categories = "category"
Expand Down

0 comments on commit 225107e

Please sign in to comment.