authorgravatar for jcmoyer32@gmail.comJ.C. Moyer <jcmoyer32@gmail.com> 2020-10-30 23:31:03-04:00
committergravatar for jcmoyer32@gmail.comJ.C. Moyer <jcmoyer32@gmail.com> 2020-10-30 23:58:23-04:00
logb38dea37c77d9b2d778e169924efd6af00f9419b
tree4680bdec7c494b3640ff2167b61753ae23f6906d
parentbb6e39e274eb0a68bfb1029ab75d1791abeb2911

Update doc comments to reflect current behavior


1 files changed, 3 insertions(+), 1 deletions(-)

lib/std/fmt.zig+3-1
......@@ -64,7 +64,9 @@ fn peekIsAlign(comptime fmt: []const u8) bool {
6464/// - `x` and `X`:
6565/// - format the non-numeric value as a string of bytes in hexadecimal notation ("binary dump") in either lower case or upper case
6666/// - output numeric value in hexadecimal notation
67/// - `s`: print a pointer-to-many as a c-string, use zero-termination
67/// - `s`:
68/// - for pointer-to-many and C pointers of u8, print as a C-string using zero-termination
69/// - for slices of u8, print the entire slice as a string without zero-termination
6870/// - `z`: escape the string with @"" syntax if it is not a valid Zig identifier.
6971/// - `Z`: print the string escaping non-printable characters using Zig escape sequences.
7072/// - `B` and `Bi`: output a memory size in either metric (1000) or power-of-two (1024) based notation. works for both float and integer values.