Skip to content

Commit 6fc69c8

Browse files
Fix #64
1 parent 4061611 commit 6fc69c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_weave/lecture03/sciml.jmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ initial `W` and `b` matrices (according to the `glorot_uniform` distribution for
174174

175175
The last portion might be new. This is known as a **callable struct**, or a
176176
functor. It defines the dispatch for how calls work on the struct. As a quick
177-
demonstration, let's define a type `A` with a field `x`, and then make instances
177+
demonstration, let's define a type `MyCallableStruct` with a field `x`, and then make instances
178178
of `A` be the function `x+y`:
179179

180180
```julia
181-
struct A
181+
struct MyCallableStruct
182182
x
183183
end
184184

185-
(a::A)(y) = a.x+y
186-
a = A(2)
185+
(a::MyCallableStruct)(y) = a.x+y
186+
a = MyCallableStruct(2)
187187
a(3)
188188
```
189189

0 commit comments

Comments
 (0)