about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2021-10-09 21:08:53 +0100
committerGary Guo <gary@garyguo.net>2021-10-09 21:27:33 +0100
commit7b5bedf709edc75dbe35e0dacd75c22702c81c8d (patch)
treeb68ab4871fb08417ec79dca0b66b74116234ff66 /src
parent15491d7b6be1065217e09bd735e4ecffbe9838ba (diff)
downloadrust-7b5bedf709edc75dbe35e0dacd75c22702c81c8d.tar.gz
rust-7b5bedf709edc75dbe35e0dacd75c22702c81c8d.zip
Fix ABNF of inline asm options
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/library-features/asm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/unstable-book/src/library-features/asm.md b/src/doc/unstable-book/src/library-features/asm.md
index a2afa88028f..5a2cef24870 100644
--- a/src/doc/unstable-book/src/library-features/asm.md
+++ b/src/doc/unstable-book/src/library-features/asm.md
@@ -456,7 +456,7 @@ operand := reg_operand / "const" const_expr / "sym" path
 clobber_abi := "clobber_abi(" <abi> ")"
 option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
 options := "options(" option *["," option] [","] ")"
-asm := "asm!(" format_string *("," format_string) *("," [ident "="] operand) ["," clobber_abi]  ["," options] [","] ")"
+asm := "asm!(" format_string *("," format_string) *("," [ident "="] operand) ["," clobber_abi] *("," options) [","] ")"
 ```
 
 Inline assembly is currently supported on the following architectures: