File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ swapTwoValues(&someString, &anotherString)
123
123
124
124
下图展示了入栈(push)和出栈(pop)的行为:
125
125
126
- ![ ] ( https://docs.swift.org/swift-book/_images/stackPushPop_2x .png )
126
+ ![ ] ( https://docs.swift.org/swift-book/images/stackPushPop~dark@2x .png )
127
127
128
128
1 . 现在有三个值在栈中。
129
129
2 . 第四个值被压入到栈的顶部。
@@ -186,7 +186,7 @@ stackOfStrings.push("cuatro")
186
186
187
187
下图展示了 ` stackOfStrings ` 如何将这四个值压栈:
188
188
189
- ![ ] ( https://docs.swift.org/swift-book/_images/stackPushedFourStrings_2x .png )
189
+ ![ ] ( https://docs.swift.org/swift-book/images/stackPushedFourStrings~dark@2x .png )
190
190
191
191
移除并返回栈顶部的值“cuatro”,即出栈:
192
192
@@ -197,7 +197,7 @@ let fromTheTop = stackOfStrings.pop()
197
197
198
198
下图展示了如何将顶部的值出栈:
199
199
200
- ![ ] ( https://docs.swift.org/swift-book/_images/stackPoppedOneString_2x .png )
200
+ ![ ] ( https://docs.swift.org/swift-book/images/stackPoppedOneString~dark@2x .png )
201
201
202
202
## 泛型扩展 {#extending-a-generic-type}
203
203
You can’t perform that action at this time.
0 commit comments