Skip to content

Commit fe2c9ed

Browse files
authored
Update 22_Generics.md
1 parent 4dc673e commit fe2c9ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/02_language_guide/22_Generics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ swapTwoValues(&someString, &anotherString)
123123
124124
下图展示了入栈(push)和出栈(pop)的行为:
125125

126-
![](https://docs.swift.org/swift-book/_images/stackPushPop_2x.png)
126+
![](https://docs.swift.org/swift-book/images/stackPushPop~dark@2x.png)
127127

128128
1. 现在有三个值在栈中。
129129
2. 第四个值被压入到栈的顶部。
@@ -186,7 +186,7 @@ stackOfStrings.push("cuatro")
186186

187187
下图展示了 `stackOfStrings` 如何将这四个值压栈:
188188

189-
![](https://docs.swift.org/swift-book/_images/stackPushedFourStrings_2x.png)
189+
![](https://docs.swift.org/swift-book/images/stackPushedFourStrings~dark@2x.png)
190190

191191
移除并返回栈顶部的值“cuatro”,即出栈:
192192

@@ -197,7 +197,7 @@ let fromTheTop = stackOfStrings.pop()
197197

198198
下图展示了如何将顶部的值出栈:
199199

200-
![](https://docs.swift.org/swift-book/_images/stackPoppedOneString_2x.png)
200+
![](https://docs.swift.org/swift-book/images/stackPoppedOneString~dark@2x.png)
201201

202202
## 泛型扩展 {#extending-a-generic-type}
203203

0 commit comments

Comments
 (0)