Skip to content

Commit 906fa09

Browse files
committed
docs: correct {Array,Bytes}.copy_from as methods
1 parent 3448cff commit 906fa09

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

rhombus/rhombus/scribblings/reference/array.scrbl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ contents, even if one is mutable and the other is immutable.
292292
}
293293

294294
@doc(
295-
fun Array.copy_from(dest_arr :: MutableArray,
296-
dest_start :: Nat,
297-
src_arr :: Array,
298-
src_start :: Nat = 0,
299-
src_end :: Nat = Array.length(src_arr))
295+
method Array.copy_from(dest_arr :: MutableArray,
296+
dest_start :: Nat,
297+
src_arr :: Array,
298+
src_start :: Nat = 0,
299+
src_end :: Nat = Array.length(src_arr))
300300
:: Void
301301
){
302302

rhombus/rhombus/scribblings/reference/bytes.scrbl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ like @rhombus(<) and @rhombus(>) work on byte strings.
142142
}
143143

144144
@doc(
145-
method (bstr :: Bytes).copy(bstr :: Bytes) :: MutableBytes
145+
method (bstr :: Bytes).copy() :: MutableBytes
146146
){
147147

148148
Returns a fresh mutable byte string with the same initial content as
@@ -158,11 +158,11 @@ like @rhombus(<) and @rhombus(>) work on byte strings.
158158

159159

160160
@doc(
161-
fun Bytes.copy_from(dest_bstr :: MutableBytes,
162-
dest_start :: Nat,
163-
src_bstr :: Bytes,
164-
src_start :: Nat = 0,
165-
src_end :: Nat = Bytes.length(src_bstr))
161+
method Bytes.copy_from(dest_bstr :: MutableBytes,
162+
dest_start :: Nat,
163+
src_bstr :: Bytes,
164+
src_start :: Nat = 0,
165+
src_end :: Nat = Bytes.length(src_bstr))
166166
:: Void
167167
){
168168

0 commit comments

Comments
 (0)