Skip to content

Commit 97528d6

Browse files
committed
---
yaml --- r: 236030 b: refs/heads/stable c: 2d5c1bb h: refs/heads/master v: v3
1 parent f1827fc commit 97528d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 709641bdf0c8778aab0f02b2f8cf631940fe7cbb
32+
refs/heads/stable: 2d5c1bbee053ff2398f42cc7229738f33f78ff4b
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/conversions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ expression, `e as U2` is not necessarily so (in fact it will only be valid if
210210
For numeric casts, there are quite a few cases to consider:
211211

212212
* casting between two integers of the same size (e.g. i32 -> u32) is a no-op
213-
* casting from a smaller integer to a bigger integer (e.g. u32 -> u8) will truncate
214-
* casting from a larger integer to a smaller integer (e.g. u8 -> u32) will
215-
* zero-extend if the target is unsigned
216-
* sign-extend if the target is signed
213+
* casting from a larger integer to a smaller integer (e.g. u32 -> u8) will truncate
214+
* casting from a smaller integer to a larger integer (e.g. u8 -> u32) will
215+
* zero-extend if the source is unsigned
216+
* sign-extend if the source is signed
217217
* casting from a float to an integer will round the float towards zero
218218
* **NOTE: currently this will cause Undefined Behaviour if the rounded
219219
value cannot be represented by the target integer type**. This is a bug

0 commit comments

Comments
 (0)