Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Run tests
run: just test
run: source bin/activate-hermit && just test
- name: Build extern demo
run: just extern-demo-build
run: source bin/activate-hermit && just extern-demo-build
- name: Run extern demo
run: just extern-demo-run
run: source bin/activate-hermit && just extern-demo-run
2 changes: 1 addition & 1 deletion TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub fn main() -> i32 {
}
```

Linear values must be consumed along every path. `drop(x)` is a built-in sink that consumes the value.
Linear values must be consumed along every path. You can consume them with a terminal method (like `FileRead.close()` or `read_to_string()`), or with `drop(x)` as a last resort.

## 10) Borrow-lite: &T parameters

Expand Down
Loading