Skip to content
Permalink
Browse files

Fixed a tiny typo (#1114)

  • Loading branch information...
ZHYfeng authored and blackgnezdo committed Apr 5, 2019
1 parent 2fbd3aa commit c34fde03ec2b778c7cb3f4463dac2e6b9c7934c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/syscall_descriptions_syntax.md
@@ -142,7 +142,7 @@ Resources represent values that need to be passed from output of one syscall to
"resource" identifier "[" underlying_type "]" [ ":" const ("," const)* ]
```

`underlying_type` is either one of `int8`, `int16`, `int32`, `int64`, `intptr` or another resource (which models inheritance, for example, a socket is a subype of fd). The optional set of constants represent resource special values, for example, `0xffffffffffffffff` (-1) for "no fd", or `AT_FDCWD` for "the current dir". Special values are used once in a while as resource values. If no special values specified, special value of `0` is used. Resources can then be used as types, for example:
`underlying_type` is either one of `int8`, `int16`, `int32`, `int64`, `intptr` or another resource (which models inheritance, for example, a socket is a subtype of fd). The optional set of constants represent resource special values, for example, `0xffffffffffffffff` (-1) for "no fd", or `AT_FDCWD` for "the current dir". Special values are used once in a while as resource values. If no special values specified, special value of `0` is used. Resources can then be used as types, for example:

```
resource fd[int32]: 0xffffffffffffffff, AT_FDCWD, 1000000

0 comments on commit c34fde0

Please sign in to comment.
You can’t perform that action at this time.