diff --git a/INTEROP.md b/INTEROP.md index cd337aa3558..ac427035b8e 100644 --- a/INTEROP.md +++ b/INTEROP.md @@ -321,7 +321,7 @@ neither implicit integer casts nor C-style integer casts (e.g. `(size_t) intValue`), so to make writing portable code in such cases easier, the following methods are provided: -* `fun ${type1}.sizeExtend<${type2}>(): ${type2}` +* `fun ${type1}.signExtend<${type2}>(): ${type2}` * `fun ${type1}.narrow<${type2}>(): ${type2}` where each of `type1` and `type2` must be an integral type. @@ -345,4 +345,4 @@ fun zeroMemory(buffer: COpaquePointer, size: Int) { ``` Also the type parameter can be inferred automatically and thus may be omitted -in some cases. \ No newline at end of file +in some cases.