Skip to content

Commit 96fb3a0

Browse files
committed
[Docs] Change return this to say return self
Signed-off-by: Everett Badeaux <[email protected]>
1 parent bf102d2 commit 96fb3a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/TextFormatting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ representation before writing an object to a stream, we provide a
205205

206206
// You'll never want to reimplement this
207207
func format() -> PrintRepresentation {
208-
return this
208+
return self
209209
}
210210
}
211211

@@ -242,7 +242,7 @@ Besides modeling ``TextOutputStream``, ``String`` also conforms to
242242
}
243243

244244
func format() -> String {
245-
return this
245+
return self
246246
}
247247
}
248248

@@ -321,7 +321,7 @@ complicated ``format(...)`` might be written::
321321
}
322322

323323
extension Int : CustomStringConvertibleInteger {
324-
func toInt() -> Int { return this }
324+
func toInt() -> Int { return self }
325325
}
326326

327327

0 commit comments

Comments
 (0)