From 47de593690d3f4af0669c3106ae0effcb3a51961 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 2 Aug 2026 03:15:30 +0200 Subject: [PATCH] Update stale os.flags file doc --- core/flags/doc.odin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/flags/doc.odin b/core/flags/doc.odin index e17cff21b..4aca753f7 100644 --- a/core/flags/doc.odin +++ b/core/flags/doc.odin @@ -52,8 +52,8 @@ Under the `args` tag, there are the following subtags: - `hidden`: hide this flag from the usage documentation. - `required`: cause verification to fail if this argument is not set. - `manifold=N`: take several arguments at once, UNIX-style only. -- `file`: for `os.Handle` types, file open mode. -- `perms`: for `os.Handle` types, file open permissions. +- `file`: for `^os.File` types, file open mode. +- `perms`: for `^os.File` types, file open permissions. - `indistinct`: allow the setting of distinct types by their base type. `required` may be given a range specifier in the following formats: @@ -71,7 +71,7 @@ arguments it consumes at once. If this number is not specified, it will take as many arguments as can be converted to the underlying element type. -`file` determines the file open mode for an `os.Handle`. +`file` determines the file open mode for an `^os.File`. It accepts a string of flags that can be mixed together: - r: read - w: write @@ -80,7 +80,7 @@ It accepts a string of flags that can be mixed together: - t: truncate, erase the file on open -`perms` determines the file open permissions for an `os.Handle`. +`perms` determines the file open permissions for an `^os.File`. The permissions are represented by three numbers in octal format. The first number is the owner, the second is the group, and the third is other. Read is @@ -119,7 +119,7 @@ Supported Flag Data Types: - all bit_sets - `string` and `cstring` - `rune` -- `os.Handle` +- `^os.File` - `time.Time` - `datetime.DateTime` - `net.Host_Or_Endpoint`,