Skip to content

Commit 21f138e

Browse files
committed
clarified documentation / help
1 parent df751da commit 21f138e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_session/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ mod desc {
380380
pub const parse_panic_strategy: &str = "either `unwind` or `abort`";
381381
pub const parse_on_broken_pipe: &str = "either `kill`, `error`, or `inherit`";
382382
pub const parse_patchable_function_entry: &str =
383-
"total_nops and optionally prefix_nops (defaulting prefix_nops=0)";
383+
"either two comma separated integers (total_nops,prefix_nops) or one integer (total_nops)";
384384
pub const parse_opt_panic_strategy: &str = parse_panic_strategy;
385385
pub const parse_oom_strategy: &str = "either `panic` or `abort`";
386386
pub const parse_relro_level: &str = "one of: `full`, `partial`, or `off`";

src/doc/unstable-book/src/compiler-flags/patchable-function-entry.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
--------------------
44

5-
The `-Z patchable-function-entry=M,N` or `-Z patchable-function-entry=M`
6-
compiler flag enables nop padding of function entries with M nops, with
7-
an offset for the entry of the function at N nops. In the second form,
8-
N defaults to 0.
5+
The `-Z patchable-function-entry=total_nops,prefix_nops` or `-Z patchable-function-entry=total_nops`
6+
compiler flag enables nop padding of function entries with 'total_nops' nops, with
7+
an offset for the entry of the function at 'prefix_nops' nops. In the second form,
8+
'prefix_nops' defaults to 0.
99

1010
As an illustrative example, `-Z patchable-function-entry=3,2` would produce:
1111

0 commit comments

Comments
 (0)