Skip to content

Commit 0b56c98

Browse files
committed
refactor: Pull out link to 3502
1 parent 1bbeb65 commit 0b56c98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

text/3503-frontmatter.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Summary
88
[summary]: #summary
99

10-
Add a frontmatter syntax to Rust as a way for [cargo to have manifests embedded in source code](https://github.com/rust-lang/rfcs/pull/3502):
10+
Add a frontmatter syntax to Rust as a way for [cargo to have manifests embedded in source code][RFC 3502]:
1111
````rust
1212
#!/usr/bin/env cargo
1313
```cargo
@@ -33,7 +33,7 @@ fn main() {
3333
# Motivation
3434
[motivation]: #motivation
3535

36-
["cargo script"](https://github.com/rust-lang/rfcs/pull/3502) is in need of a syntax for embedding manifests in source.
36+
["cargo script"][RFC 3502] is in need of a syntax for embedding manifests in source.
3737
See that RFC for its motivations.
3838

3939
# Guide-level explanation
@@ -75,7 +75,7 @@ fn main() {
7575
````
7676

7777
As we work to better understand how tool authors will want to use frontmatter, we are restricting it to just the `cargo` infostring.
78-
This means users will only be exposed to this within the concept of ["cargo script"](https://github.com/rust-lang/rfcs/pull/3502).
78+
This means users will only be exposed to this within the concept of ["cargo script"][RFC 3502].
7979

8080
# Reference-level explanation
8181
[reference-level-explanation]: #reference-level-explanation
@@ -107,7 +107,7 @@ we considered starting with only allowing this in the root `mod` (e.g. `main.rs`
107107
but decided to allow it in any file mostly for ease of implementation.
108108
Like with Python, this allows any file in a package (with the correct deps and `mod`s) to be executed, allowing easier interacting experiences in verifying behavior.
109109

110-
As for the hard-coded infostring used by cargo, that is a decision for [RFC 3502](https://github.com/rust-lang/rfcs/pull/3502).
110+
As for the hard-coded infostring used by cargo, that is a decision for [RFC 3502].
111111

112112
## Syntax
113113

@@ -562,3 +562,5 @@ Continuous blocks
562562
Distinct blocks is more like the source inspiration, markdown,
563563
though has more noise, places to get things wrong, and syntax questions
564564
(newlines).
565+
566+
[RFC 3502]: https://github.com/rust-lang/rfcs/pull/3502

0 commit comments

Comments
 (0)