mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Core.Char -> char in a couple spots (#6126)
This commit is contained in:
@@ -20,13 +20,13 @@ fn Run() {
|
||||
|
||||
// TODO: Requires Core.String API.
|
||||
// let message: str = "Hello world!\n\n";
|
||||
// for (c: Core.Char in message) {
|
||||
// for (c: char in message) {
|
||||
// Cpp.putchar((c as u8) as i32);
|
||||
// }
|
||||
|
||||
let message: array(Core.Char, 13) =
|
||||
let message: array(char, 13) =
|
||||
('H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '!', '\n');
|
||||
for (c: Core.Char in message) {
|
||||
for (c: char in message) {
|
||||
// TODO: u8 should probably have an implicit cast to i32.
|
||||
Cpp.putchar((c as u8) as i32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user