From 2b7203463a53a2a374f6f9d0604716c36efe63e7 Mon Sep 17 00:00:00 2001 From: sparkylein Date: Sun, 17 Sep 2023 03:04:56 -0700 Subject: [PATCH] Fixed typos (#7) * Update functions.md Fixed typo for variadic parameters: ... before the type not the name. * Update integrated-jule.md Fixed typo: Librray -> Library --- src/common-concepts/functions.md | 4 ++-- src/cpp/integrated-jule.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common-concepts/functions.md b/src/common-concepts/functions.md index 6add7a6..3bbcd91 100644 --- a/src/common-concepts/functions.md +++ b/src/common-concepts/functions.md @@ -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. @@ -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. \ No newline at end of file +The function does not have to return in the main scope, as the match expression above returns a return for every condition. diff --git a/src/cpp/integrated-jule.md b/src/cpp/integrated-jule.md index 4b6a88e..6007982 100644 --- a/src/cpp/integrated-jule.md +++ b/src/cpp/integrated-jule.md @@ -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.