FIXME
This commit is contained in:
parent
222e779da4
commit
04718f77b2
2 changed files with 14 additions and 4 deletions
|
|
@ -2516,10 +2516,11 @@ impl Words {
|
|||
}
|
||||
}
|
||||
|
||||
struct Word(String);
|
||||
// FIXME: This is terrible. Placeholder.
|
||||
pub struct Word(pub String);
|
||||
|
||||
impl Word {
|
||||
fn new(word: String) -> Result<Self, &'static str> {
|
||||
pub fn new(word: String) -> Result<Self, &'static str> {
|
||||
if word.len() >= 1 {
|
||||
Ok(Word(word))
|
||||
} else {
|
||||
|
|
@ -2527,7 +2528,7 @@ impl Word {
|
|||
}
|
||||
}
|
||||
|
||||
fn get(&self) -> &str {
|
||||
pub fn get(&self) -> &str {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue