Skip to content

Commit ed6d86a

Browse files
zqb-allcmuellner
authored andcommitted
Fix typo: add `
Signed-off-by: Mark Zhuang <mark.zhuang@spacemit.com>
1 parent c00b0ba commit ed6d86a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscv-c-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ __attribute__((target("arch=+v"))) int foo(void) { return 0; }
290290
__attribute__((target("arch=+zbb"))) int foo(void) { return 1; }
291291
```
292292
293-
### `__attribute__((target_clones("<TARGET-CLONES-ATTR-STRING>", ...)))
293+
### `__attribute__((target_clones("<TARGET-CLONES-ATTR-STRING>", ...)))`
294294
295295
The `target_clones` attribute is used to create multiple versions of a function. The compiler will emit multiple versions based on the provided arguments.
296296
@@ -333,7 +333,7 @@ int bar() {
333333

334334
It makes the compiler trigger the [function multi-version](#function-multi-version) when there exist more than one version for the same function signature.
335335

336-
### `__attribute__((target_version("<TARGET-VERSION-ATTR-STRING>")))
336+
### `__attribute__((target_version("<TARGET-VERSION-ATTR-STRING>")))`
337337

338338
The `target_version` attribute is used to create one version of a function. Functions with the same signature may exist with multiple versions in the same translation unit.
339339

0 commit comments

Comments
 (0)