about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-06-19 12:40:50 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2025-06-19 13:58:23 +0200
commiteefd59872565330fc5905dc5903a56ce93fca47e (patch)
treefa8f7ae9c817229af51dd0ba915d328307bca702 /src
parent8a65ee08296b36342bf7c3cdc15312ccbc357227 (diff)
downloadrust-eefd59872565330fc5905dc5903a56ce93fca47e.tar.gz
rust-eefd59872565330fc5905dc5903a56ce93fca47e.zip
correct template for `#[align]`
it should not suggest just `#[align]`
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/min-function-alignment.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/min-function-alignment.md b/src/doc/unstable-book/src/compiler-flags/min-function-alignment.md
index b7a3aa71fc4..03e576e3e30 100644
--- a/src/doc/unstable-book/src/compiler-flags/min-function-alignment.md
+++ b/src/doc/unstable-book/src/compiler-flags/min-function-alignment.md
@@ -15,7 +15,7 @@ This flag is equivalent to:
 - `-fmin-function-alignment` for [GCC](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fmin-function-alignment_003dn)
 - `-falign-functions` for [Clang](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang1-falign-functions)
 
-The specified alignment is a minimum. A higher alignment can be specified for specific functions by using the [`repr(align(...))`](https://github.com/rust-lang/rust/issues/82232) feature and annotating the function with a `#[repr(align(<align>))]` attribute. The attribute's value is ignored when it is lower than the value passed to `min-function-alignment`.
+The specified alignment is a minimum. A higher alignment can be specified for specific functions by using the [`align(...)`](https://github.com/rust-lang/rust/issues/82232) feature and annotating the function with a `#[align(<align>)]` attribute. The attribute's value is ignored when it is lower than the value passed to `min-function-alignment`.
 
 There are two additional edge cases for this flag: