Skip to content

Commit ca25e48

Browse files
committed
Fix typo
1 parent 9e9d864 commit ca25e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/StructTypes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ getPerson(id::Int) = Strapping.construct(Person, DBInterface.execute(db,
279279
WHERE person.id = \$id
280280
\"\"\"))
281281
```
282-
This works because the column names in the resultset of this query are "id, name, spouse_id, spouse_name";
282+
This works because the column names in the resultset of this query are "id, name, spouse\\_id, spouse\\_name";
283283
because we defined `StructTypes.fieldprefix` for `Person`, Strapping.jl knows that each
284-
column starting with "spouse_" should be used in constructing the `Spouse` field of `Person`.
284+
column starting with "spouse\\_" should be used in constructing the `Spouse` field of `Person`.
285285
"""
286286
function fieldprefix end
287287

@@ -359,7 +359,7 @@ So if your type already subtypes these and satifies their interface, things shou
359359
Otherwise, the interface to satisfy `StructTypes.ArrayType()` for deserializing is:
360360
361361
* `T(x::Vector)`: implement a constructor that takes a `Vector` argument of values and constructs a `T`
362-
* `StructTypes.construct(::Type{T}, x::Vecto; kw...)`: alternatively, you may overload the `StructTypes.construct` method for your type if defining a constructor isn't possible
362+
* `StructTypes.construct(::Type{T}, x::Vector; kw...)`: alternatively, you may overload the `StructTypes.construct` method for your type if defining a constructor isn't possible
363363
* Optional: `Base.IteratorEltype(::Type{T}) = Base.HasEltype()` and `Base.eltype(x::T)`: this can be used to signal that elements for your type are expected to be a homogenous type
364364
365365
The interface to satisfy for serializing is:

0 commit comments

Comments
 (0)