Browse Source

Updated build version requirement to 0.10.0-dev.3385

Dave Gauer 3 years ago
parent
commit
00796028ba
3 changed files with 4 additions and 2 deletions
  1. 2 1
      README.md
  2. 1 1
      build.zig
  3. 1 0
      exercises/050_no_value.zig

+ 2 - 1
README.md

@@ -41,7 +41,7 @@ Verify the installation and build number of `zig` like so:
 
 
 ```bash
 ```bash
 $ zig version
 $ zig version
-0.10.0-dev.1427+xxxxxxxxx
+0.10.0-dev.3385+xxxxxxxxx
 ```
 ```
 
 
 Clone this repository with Git:
 Clone this repository with Git:
@@ -81,6 +81,7 @@ about input:
 
 
 ### Version Changes
 ### Version Changes
 
 
+* *2022-07-31* zig 0.10.0-dev.3385 - std lib string fmt() option changes
 * *2022-03-19* zig 0.10.0-dev.1427 - method for getting sentinel of type changed
 * *2022-03-19* zig 0.10.0-dev.1427 - method for getting sentinel of type changed
 * *2021-12-20* zig 0.9.0-dev.2025 - `c_void` is now `anyopaque`
 * *2021-12-20* zig 0.9.0-dev.2025 - `c_void` is now `anyopaque`
 * *2021-06-14* zig 0.9.0-dev.137  - std.build.Id `.Custom` is now `.custom`
 * *2021-06-14* zig 0.9.0-dev.137  - std.build.Id `.Custom` is now `.custom`

+ 1 - 1
build.zig

@@ -8,7 +8,7 @@ const print = std.debug.print;
 // When changing this version, be sure to also update README.md in two places:
 // When changing this version, be sure to also update README.md in two places:
 //     1) Getting Started
 //     1) Getting Started
 //     2) Version Changes
 //     2) Version Changes
-const needed_version = std.SemanticVersion.parse("0.10.0-dev.1427") catch unreachable;
+const needed_version = std.SemanticVersion.parse("0.10.0-dev.3385") catch unreachable;
 
 
 const Exercise = struct {
 const Exercise = struct {
     /// main_file must have the format key_name.zig.
     /// main_file must have the format key_name.zig.

+ 1 - 0
exercises/050_no_value.zig

@@ -71,6 +71,7 @@ pub fn main() void {
     var first_line2: Err!*const [21]u8 = ???;
     var first_line2: Err!*const [21]u8 = ???;
     first_line2 = "which can eternal lie";
     first_line2 = "which can eternal lie";
 
 
+    // Note we need the "{!s}" format for the error union string.
     std.debug.print("{s} {!s} / ", .{ first_line1, first_line2 });
     std.debug.print("{s} {!s} / ", .{ first_line1, first_line2 });
 
 
     printSecondLine();
     printSecondLine();