Skip to content

Commit

Permalink
Fixed typos (#7)
Browse files Browse the repository at this point in the history
* Update functions.md

Fixed typo for variadic parameters:
... before the type not the name.

* Update integrated-jule.md

Fixed typo:
Librray -> Library
  • Loading branch information
sparkylein authored Sep 17, 2023
1 parent dfbee9e commit 2b72034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common-concepts/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn main() {
str_out("Hello", "World", "Variadic")
}
```
As seen in the example above, many arguments could be given to the function even though it was a single parameter. This is a result of the variadic parameter. Putting the `...` operator before its name makes parameter variadic.
As seen in the example above, many arguments could be given to the function even though it was a single parameter. This is a result of the variadic parameter. Putting the `...` operator before its type makes parameter variadic.
::: tip
- Each variadic parameter, actually is an slice.
- Variadic parameters is not must have an argument in calling.
Expand Down Expand Up @@ -244,4 +244,4 @@ fn get_rate(x: int): int {
}
}
```
The function does not have to return in the main scope, as the match expression above returns a return for every condition.
The function does not have to return in the main scope, as the match expression above returns a return for every condition.
2 changes: 1 addition & 1 deletion src/cpp/integrated-jule.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In order to achieve good compatibility with Jule, it is recommended that C++ cod

Integrated Jule is an essential part of C/C++ interoperability.

## Librray
## Library

The `std::jule::integrated` standard library is a major supporter of Integrated Jule's interoperability pillar. It provides a standard for widely used C/C++ definitions. This makes it possible to spend less time on C/C++ definitions that link to Jule code. In addition, it can not only make things easier, but also improve and simplify the implementation by providing algorithms for a number of tasks.

Expand Down

0 comments on commit 2b72034

Please sign in to comment.