mirror of
https://github.com/ratfactor/ziglings
synced 2024-05-11 22:56:04 +02:00
Compare commits
5 Commits
1e9124b333
...
27b5d3b55f
Author | SHA1 | Date | |
---|---|---|---|
Chris Boesch | 27b5d3b55f | ||
Chris Boesch | fca59c258b | ||
Chris Boesch | b209cc3f49 | ||
Chris Boesch | 6f34f7ad0e | ||
Juergen Hoetzel | 9fce9bd57f |
|
@ -114,12 +114,10 @@ Version-0.11.0-dev.4246+71dfce31b
|
|||
|
||||
## Advanced Usage
|
||||
|
||||
It can be handy to check just a single exercise or _start_ from a
|
||||
single exercise:
|
||||
It can be handy to check just a single exercise:
|
||||
|
||||
```
|
||||
zig build -Dn=19
|
||||
zig build -Dn=19 start
|
||||
```
|
||||
|
||||
You can also run without checking for correctness:
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
// const a2: u8 = 0x41; // hexadecimal
|
||||
// const a3: u8 = 0o101; // octal
|
||||
// const a4: u8 = 0b1000001; // binary
|
||||
// const a5: u8 = 'A'; // UTF-8 code point literal
|
||||
// const a5: u8 = 'A'; // ASCII code point literal
|
||||
// const a6: u16 = 'È€'; // Unicode code points can take up to 21 bits
|
||||
//
|
||||
// You can also place underscores in numbers to aid readability:
|
||||
//
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
92c92
|
||||
91c91
|
||||
< ???.zap(???);
|
||||
---
|
||||
> heat_ray.zap(alien);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
22,24c22,24
|
||||
23,25c23,25
|
||||
< 0o131, // octal
|
||||
< 0b1101000, // binary
|
||||
< 0x66, // hex
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
43c43
|
||||
46c46
|
||||
< const shuttle_weight: f16 = 907.18 * 2200;
|
||||
---
|
||||
> const shuttle_weight: f32 = 907.18 * 2200.0;
|
||||
|
|
Loading…
Reference in New Issue