Skip to content

Commit

Permalink
slightly update the document
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyawk committed Dec 21, 2024
1 parent 03f0fe8 commit c1e0952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/cc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ In addition to the common rule attributes listed [here](https://bazel.build/refe

## `inline_src`

Using `inline_src`, you can provide source code as an inline string. The function `inline_src.c` generates a C source file, while `inline_src.cpp` generates a C++ source file. Both functions accept a string containing the source code as their argument.
Using a struct `inline_src`, you can provide source code as an inline string, like `src = inline_src.c("int main(void) { return 0; }")`. The function `inline_src.c` generates a C source file, while `inline_src.cpp` generates a C++ source file. Both functions accept a string containing the source code as their argument.

0 comments on commit c1e0952

Please sign in to comment.