Skip to content

Commit 8248ee9

Browse files
committed
---
yaml --- r: 224447 b: refs/heads/beta c: 2d5c1bb h: refs/heads/master i: 224445: 6528560 224443: 8037efb 224439: 176bce8 224431: 0a25bbd 224415: 69b363e 224383: b238325 v: v3
1 parent 9f067ed commit 8248ee9

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 709641bdf0c8778aab0f02b2f8cf631940fe7cbb
26+
refs/heads/beta: 2d5c1bbee053ff2398f42cc7229738f33f78ff4b
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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)