Skip to content

Commit 9e45fee

Browse files
fix for simplified extend
1 parent 1152f30 commit 9e45fee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/src/tutorials/acausal_components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454
end
5555
5656
@mtkmodel Resistor begin
57-
@extend oneport = OnePort()
57+
@extend OnePort()
5858
@parameters begin
5959
R = 1.0 # Sets the default resistance
6060
end
@@ -66,7 +66,7 @@ end
6666
D = Differential(t)
6767
6868
@mtkmodel Capacitor begin
69-
@extend v, i = oneport = OnePort()
69+
@extend OnePort()
7070
@parameters begin
7171
C = 1.0
7272
end
@@ -76,7 +76,7 @@ D = Differential(t)
7676
end
7777
7878
@mtkmodel ConstantVoltage begin
79-
@extend oneport = OnePort()
79+
@extend OnePort()
8080
@parameters begin
8181
V = 1.0
8282
end
@@ -193,7 +193,7 @@ zero. This leads to our resistor equations:
193193

194194
```@example acausal
195195
@mtkmodel Resistor begin
196-
@extend oneport = OnePort()
196+
@extend OnePort()
197197
@parameters begin
198198
R = 1.0
199199
end
@@ -216,7 +216,7 @@ Using our knowledge of circuits, we similarly construct the `Capacitor`:
216216
D = Differential(t)
217217
218218
@mtkmodel Capacitor begin
219-
@extend oneport = OnePort()
219+
@extend OnePort()
220220
@parameters begin
221221
C = 1.0
222222
end
@@ -233,7 +233,7 @@ model this as:
233233

234234
```@example acausal
235235
@mtkmodel ConstantVoltage begin
236-
@extend oneport = OnePort()
236+
@extend OnePort()
237237
@parameters begin
238238
V = 1.0
239239
end

0 commit comments

Comments
 (0)