Skip to content

Commit

Permalink
fix: change init to main
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed May 10, 2024
1 parent ab871cc commit 94dd481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zh-docs/build-system-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ my-project
这行代码导入了 `fib` 包,它是 `hello` 模块中 `lib` 包的一部分。完成后,你可以在 `main/main.mbt` 中使用 `fib` 包。将 `main/main.mbt` 文件的内容替换为:

```rust
fn init {
fn main {
let a = @my_awesome_fibonacci.fib(10)
let b = @my_awesome_fibonacci.fib2(11)
println("fib(10) = \(a), fib(11) = \(b)")
Expand Down

0 comments on commit 94dd481

Please sign in to comment.