Skip to content

Commit 4d43f4a

Browse files
Replace left/right quotation marks
1 parent 4689a22 commit 4d43f4a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

docs/ErrorHandlingRationale.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,15 +1359,15 @@ declaration or type::
13591359
return try stream.readInt()
13601360
}
13611361
1362-
// throws is written before the arrow to give a sensible and
1362+
// 'throws' is written before the arrow to give a sensible and
13631363
// consistent grammar for function types and implicit () result types.
13641364
func baz() throws {
13651365
if let byte = try stream.getOOB() where byte == PROTO_RESET {
13661366
reset()
13671367
}
13681368
}
13691369
1370-
// throws appears in a consistent position in function types.
1370+
// 'throws' appears in a consistent position in function types.
13711371
func fred(callback: (UInt8) throws -> ()) throws {
13721372
while true {
13731373
let code = try stream.readByte()
@@ -1380,7 +1380,7 @@ declaration or type::
13801380
// this function has type:
13811381
// (Int) -> (Int) throws -> Int
13821382
func jerry(i: Int)(j: Int) throws -> Int {
1383-
// Its not an error to use throws on a function that cant throw.
1383+
// It's not an error to use 'throws' on a function that can't throw.
13841384
return i + j
13851385
}
13861386

docs/GitWorkflows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ transition to Git this document helps to address questions about how common SVN
1111
workflows we use today translate to their Git counterparts as well as to discuss
1212
Git workflow practices we plan on having — at least initially — after the Git
1313
transition. Notably we will follow a model where commits to trunk — which is
14-
the master branch in Git — has commits land (in the common case) via rebasing
14+
the 'master' branch in Git — has commits land (in the common case) via rebasing
1515
instead of merging. This model is open to evolution later, but this mimics the
1616
workflow we have today with SVN.
1717

docs/OptimizerDesign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ This is an example of the *@_semantics* attribute as used by Swift Array:
180180

181181
Notice that as soon as we inline functions that have the @_semantics attribute
182182
the attribute is lost and the optimizer can't analyze the content of the
183-
function. For example, the optimizer can identify the array count' method (that
183+
function. For example, the optimizer can identify the array 'count' method (that
184184
returns the size of the array) and can hoist this method out of loops. However,
185185
as soon as this method is inlined, the code looks to the optimizer like a memory
186186
read from an undetermined memory location, and the optimizer can't optimize the

docs/proposals/CompressedMangledNames.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ compiler and make an effort to optimize and shrink the generated binaries. One
77
of the problems that we have today is that swift symbols are mangled into
88
extremely long strings. This is especially a problem for libraries, and almost
99
half of the size of libswiftCore.dylib (the swift runtime library on x86_64 OSX)
10-
is string tables. On MacOSX you can use the command size -m file.dylib to read
10+
is string tables. On MacOSX you can use the command "size -m file.dylib" to read
1111
the size of the string table. C++ also suffers from the problem of long names,
1212
but since we control the Swift ABI we can do better than C++.
1313

@@ -99,15 +99,15 @@ the top 63 frequent substrings in our dictionary using two characters (escape +
9999
The second escape character encodes a two-character reference that can access 63 x 63 entries in the table.
100100
Less common substrings can be encoded using this three character sequence (escape + index0 + index1).
101101

102-
One interesting bit of information is that the character ‘Y’ is only used 4
102+
One interesting bit of information is that the character "Y" is only used 4
103103
times in the entire standard library! The letter J, and a few other letters are
104104
also not used very frequently. We use Y and J as escape characters.
105105

106106
The dictionary-based encoding uses the following rules:
107107

108108
1. We use two escape characters that are not frequently used in names (Y and Z).
109109
These characters are escape character and cannot be used as part of the text
110-
without escaping. ‘Y’ is encoded as ‘YY’, and ‘Z’ would be encoded as ‘YZ’.
110+
without escaping. "Y" is encoded as "YY", and "Z" would be encoded as "YZ".
111111

112112
2. The most commonly used sub-strings (calculated as length of substring times
113113
number of occurrences) is encoded with a single escape character and a
@@ -216,7 +216,7 @@ Error handling
216216
The compression routines only handle characters that are in the list of valid
217217
characters. It is possible to compress every string that uses the valid
218218
character set. However, now all incoming strings are legal. For example the
219-
string "Y" is illegal because 'Y' is an escape character and the decoded expects
219+
string "Y" is illegal because "Y" is an escape character and the decoded expects
220220
another character to follow the escape character.
221221

222222
There are a few users that will use the compression routines: The

0 commit comments

Comments
 (0)