Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Update abilities.md #1051

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion language/documentation/book/src/abilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fun invalid_unused() {
}

fun invalid_left_in_local(): u64 {
let n = Cup<NoAbilities> { item: NoAbilities {}};
let c_n = Cup<NoAbilities> { item: NoAbilities {}};
// Invalid return: 'c_n' has a value
// and 'Cup<NoAbilities>' does not have 'drop'
0
Expand Down