Skip to content

Commit 74312e7

Browse files
committed
校对至1462
1 parent ede4a1a commit 74312e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

subtitles/4. More Swift.srt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6239,12 +6239,12 @@ sqrt 是个函数,接受一个 Double,返回一个 Double
62396239
1300
62406240
01:08:16,792 --> 01:08:20,161
62416241
So it's perfectly legal for me to say operation = sqrt,
6242-
那么我写 operation = sqrt 是完全合法的
6242+
因此我写 operation = sqrt 是完全合法的
62436243

62446244
1301
62456245
01:08:20,230 --> 01:08:24,198
62466246
all right? And how do I call it? Well, I call it just like
6247-
那么我如何调用它呢?我可以就像
6247+
那么我要如何调用它呢?我可以就像
62486248

62496249
1302
62506250
01:08:24,266 --> 01:08:27,969
@@ -6254,7 +6254,7 @@ a function. Operation of 4.0 is gonna call, in this case,
62546254
1303
62556255
01:08:28,037 --> 01:08:31,872
62566256
square root of 4.0, because operation is a function var,
6257-
会调用 sqrt(4.0) 因为 operation 是一个函数类型变量
6257+
会调用 sqrt(4.0)因为 operation 是一个函数类型变量
62586258

62596259
1304
62606260
01:08:31,941 --> 01:08:33,974
@@ -6524,7 +6524,7 @@ we can take that out as well. Okay, and even more,
65246524
1357
65256525
01:11:10,766 --> 01:11:13,835
65266526
Swift knows you want to have these embedded functions all
6527-
Swift 知道你希望有这个内嵌函数
6527+
Swift 知道你希望这有个内嵌函数
65286528

65296529
1358
65306530
01:11:13,903 --> 01:11:16,938
@@ -6664,7 +6664,7 @@ download something off in the background and when it's done,
66646664
1385
66656665
01:12:40,823 --> 01:12:44,525
66666666
it wants to tell you. Okay, we call a function to do that.
6667-
它想要告诉你。那么我们可以调用一个函数来做到这一点
6667+
它想要提醒你。那么我们可以调用一个函数来做到这一点
66686668

66696669
1386
66706670
01:12:44,594 --> 01:12:47,060
@@ -6754,7 +6754,7 @@ And what if I wanted to have an array of all negative 2,
67546754
1403
67556755
01:13:39,782 --> 01:13:43,317
67566756
negative 3? Well I would just say negativePrimes =
6757-
组成的数组,我只用写 negativePrimes = prime.map( { -$0})
6757+
组成的数组,我只用写 negativePrimes = prime.map({ -$0})
67586758

67596759
1404
67606760
01:13:43,386 --> 01:13:47,354
@@ -6799,7 +6799,7 @@ maybe I even want to convert it to a string.
67996799
1412
68006800
01:14:09,878 --> 01:14:11,946
68016801
Perfectly legal, doesn't have to be the same type.
6802-
这是完全合法的,新的数组不一定要和老数组为同一个类型
6802+
这是完全合法的,新的数组不一定要和原来的数组为同一个类型
68036803

68046804
1413
68056805
01:14:12,015 --> 01:14:15,516

0 commit comments

Comments
 (0)