refactor: as_code -> code

This commit is contained in:
Anna 2018-04-02 09:32:41 -04:00
parent 089c9dfd65
commit 41ddc96b77
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ impl Job {
/// Returns the short code of this job.
///
/// Short codes are fully capitalized (e.g. "BRD", "BLM").
pub fn as_code(&self) -> &'static str {
pub fn code(&self) -> &'static str {
match *self {
Job::Bard => "BRD",
Job::BlackMage => "BLM",

View File

@ -61,7 +61,7 @@ impl NonCombatJob {
}
}
pub fn as_code(&self) -> &'static str {
pub fn code(&self) -> &'static str {
match *self {
NonCombatJob::Botanist => "BTN",
NonCombatJob::Fisher => "FSH",