Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Change 'fail!' to 'panic!' in text and code #113

Merged
merged 1 commit into from
Dec 9, 2014

Conversation

yonibot
Copy link

@yonibot yonibot commented Dec 9, 2014

In accordance with rust-lang/rfcs#221. This will prevent confusion for new Rust developers who follow the book and get compile errors when 'fail!' is used 😕 .

I left the 'Fail!' text in here because it seemed to be a description of what was happening, rather than a command:

#[test]
fn this_tests_code() {
    panic!("Fail!");
}

@steveklabnik
Copy link
Owner

hey thanks! Rust for Rubyists tracks releases, not master, but this will need to go in before the next one! And you're correct about 'fail' there.

steveklabnik added a commit that referenced this pull request Dec 9, 2014
Change 'fail!' to 'panic!' in text and code
@steveklabnik steveklabnik merged commit e5f98ed into steveklabnik:master Dec 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants