@@ -248,7 +248,7 @@ struct Slice(T)
248
248
249
249
# Copies the contents of this slice into *target*.
250
250
#
251
- # Raises if the desination slice cannot fit the data being transferred
251
+ # Raises `IndexError` if the desination slice cannot fit the data being transferred
252
252
# e.g. dest.size < self.size.
253
253
#
254
254
# ```
@@ -266,7 +266,7 @@ struct Slice(T)
266
266
267
267
# Copies the contents of *source* into this slice.
268
268
#
269
- # Truncates if the other slice doesn't fit. The same as `source.copy_to(self)` .
269
+ # Raises `IndexError` if the desination slice cannot fit the data being transferred .
270
270
@[AlwaysInline ]
271
271
def copy_from (source : self )
272
272
source.copy_to(self )
@@ -285,7 +285,7 @@ struct Slice(T)
285
285
# Moves the contents of this slice into *target*. *target* and `self` may
286
286
# overlap; the copy is always done in a non-destructive manner.
287
287
#
288
- # Raises if the desination slice cannot fit the data being transferred
288
+ # Raises `IndexError` if the desination slice cannot fit the data being transferred
289
289
# e.g. `dest.size < self.size`.
290
290
#
291
291
# ```
@@ -306,7 +306,7 @@ struct Slice(T)
306
306
# Moves the contents of *source* into this slice. *source* and `self` may
307
307
# overlap; the copy is always done in a non-destructive manner.
308
308
#
309
- # Truncates if the other slice doesn't fit. The same as `source.move_to(self)` .
309
+ # Raises `IndexError` if the desination slice cannot fit the data being transferred .
310
310
@[AlwaysInline ]
311
311
def move_from (source : self )
312
312
source.move_to(self )
0 commit comments