Skip to content

Commit 4de0094

Browse files
committed
Auto merge of #13893 - justsmth:rust-script-doc-fix, r=weihanglo
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
2 parents baca68e + ad254b8 commit 4de0094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/reference/unstable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,10 +1239,10 @@ fn main() {}
12391239
A user may optionally specify a manifest in a `cargo` code fence in a module-level comment, like:
12401240
````rust
12411241
#!/usr/bin/env -S cargo +nightly -Zscript
1242-
```cargo
1242+
---cargo
12431243
[dependencies]
12441244
clap = { version = "4.2", features = ["derive"] }
1245-
```
1245+
---
12461246

12471247
use clap::Parser;
12481248

0 commit comments

Comments
 (0)