Skip to content

Commit

Permalink
Auto merge of #13893 - justsmth:rust-script-doc-fix, r=weihanglo
Browse files Browse the repository at this point in the history
Fix docs for unstable script feature

### What does this PR try to resolve?
* [Recent change](#13861) to accepted syntax in the script feature is not reflected in the documentation.

### How should we test and review this PR?
* Verify that this documentation is consistent with syntax expected.

### Additional information
N/A
  • Loading branch information
bors committed May 9, 2024
2 parents baca68e + ad254b8 commit 4de0094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/src/reference/unstable.md
Expand Up @@ -1239,10 +1239,10 @@ fn main() {}
A user may optionally specify a manifest in a `cargo` code fence in a module-level comment, like:
````rust
#!/usr/bin/env -S cargo +nightly -Zscript
```cargo
---cargo
[dependencies]
clap = { version = "4.2", features = ["derive"] }
```
---

use clap::Parser;

Expand Down

0 comments on commit 4de0094

Please sign in to comment.