aboutsummaryrefslogtreecommitdiff
path: root/std/os/get_user_id.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-28 20:23:55 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-29 04:23:38 -0400
commit0c16cd2d0ed78be2d160f9c865cd0a8703348232 (patch)
treee7ff390d89611797776f2e67151c1157059d6147 /std/os/get_user_id.zig
parentcdf30c31ea36365859dd81c207aede3c45c4e022 (diff)
downloadzig-0c16cd2d0ed78be2d160f9c865cd0a8703348232.tar.gz
zig-0c16cd2d0ed78be2d160f9c865cd0a8703348232.zip
run zig fmt on the codebase
See #1003
Diffstat (limited to 'std/os/get_user_id.zig')
-rw-r--r--std/os/get_user_id.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/os/get_user_id.zig b/std/os/get_user_id.zig
index 11410ffa64..2a15e1d495 100644
--- a/std/os/get_user_id.zig
+++ b/std/os/get_user_id.zig
@@ -74,7 +74,7 @@ pub fn posixGetUserInfo(name: []const u8) !UserInfo {
'\n' => return error.CorruptPasswordFile,
else => {
const digit = switch (byte) {
- '0' ... '9' => byte - '0',
+ '0'...'9' => byte - '0',
else => return error.CorruptPasswordFile,
};
if (@mulWithOverflow(u32, uid, 10, &uid)) return error.CorruptPasswordFile;
@@ -83,14 +83,14 @@ pub fn posixGetUserInfo(name: []const u8) !UserInfo {
},
State.ReadGroupId => switch (byte) {
'\n', ':' => {
- return UserInfo {
+ return UserInfo{
.uid = uid,
.gid = gid,
};
},
else => {
const digit = switch (byte) {
- '0' ... '9' => byte - '0',
+ '0'...'9' => byte - '0',
else => return error.CorruptPasswordFile,
};
if (@mulWithOverflow(u32, gid, 10, &gid)) return error.CorruptPasswordFile;