This commit is contained in:
Arthur Zucker
2023-09-04 19:10:22 +00:00
parent a53dff9bc5
commit b117ac7f16
3 changed files with 11 additions and 2 deletions

View File

@ -183,8 +183,8 @@ impl PyAddedToken {
/// Set the content of this :obj:`AddedToken`
#[setter]
fn set_content(&self, content: String){
self.get_token().content = content
fn set_content(&mut self, content: String) {
self.content = content.into();
}
/// Get the value of the :obj:`rstrip` option