Skip to content

Commit

Permalink
Update shebang restrictions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 2, 2020
1 parent 89c66ab commit 277587a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,9 @@ fn main() {
}
```

There are two restrictions imposed on the shebang syntax to avoid confusion
with an [attribute]. The shebang line must have at least one non-[whitespace]
character anywhere after the `#!` characters. Additionally, The `#!`
characters must not be followed by a `[` token, ignoring intervening
[comments] or [whitespace]. If either of these restrictions fails, then it is
A restriction is imposed on the shebang syntax to avoid confusion with an
[attribute]. The `#!` characters must not be followed by a `[` token, ignoring
intervening [comments] or [whitespace]. If this restriction fails, then it is
not treated as a shebang, but instead as the start of an attribute.

## Preludes and `no_std`
Expand Down

0 comments on commit 277587a

Please sign in to comment.