Skip to content

Commit

Permalink
Merge pull request #3441 from Chickenkeeper/copy-from-string-docs-fix
Browse files Browse the repository at this point in the history
Correct `copy_from_string` docs
  • Loading branch information
gingerBill authored Apr 17, 2024
2 parents 7cd2bc2 + 6dcf38b commit 9bbe26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/runtime/core_builtin.odin
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ copy_slice :: proc "contextless" (dst, src: $T/[]$E) -> int {
}
return n
}
// `copy_from_string` is a built-in procedure that copies elements from a source slice `src` to a destination string `dst`.
// `copy_from_string` is a built-in procedure that copies elements from a source string `src` to a destination slice `dst`.
// The source and destination may overlap. Copy returns the number of elements copied, which will be the minimum
// of len(src) and len(dst).
//
Expand All @@ -53,7 +53,7 @@ copy_from_string :: proc "contextless" (dst: $T/[]$E/u8, src: $S/string) -> int
}
return n
}
// `copy` is a built-in procedure that copies elements from a source slice `src` to a destination slice/string `dst`.
// `copy` is a built-in procedure that copies elements from a source slice/string `src` to a destination slice `dst`.
// The source and destination may overlap. Copy returns the number of elements copied, which will be the minimum
// of len(src) and len(dst).
@builtin
Expand Down

0 comments on commit 9bbe26f

Please sign in to comment.