cleanup, sync
This commit is contained in:
@@ -6,11 +6,11 @@ pub struct Article {
|
||||
pub content: String,
|
||||
}
|
||||
|
||||
impl Article {
|
||||
pub fn new(title: &str, content: &str) -> Article {
|
||||
Article {
|
||||
title: title.to_string(),
|
||||
content: content.to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
// impl Article {
|
||||
// pub fn new(title: &str, content: &str) -> Article {
|
||||
// Article {
|
||||
// title: title.to_string(),
|
||||
// content: content.to_string(),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user