From e033525fc382314da7bb75e80874e2a69f3621fc Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 15 Dec 2021 11:24:53 +0100 Subject: [PATCH] ressource -> resource --- rslib/src/card_rendering/parser.rs | 2 +- rslib/src/card_rendering/writer.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rslib/src/card_rendering/parser.rs b/rslib/src/card_rendering/parser.rs index 5fc32ca68..5ffb1a79f 100644 --- a/rslib/src/card_rendering/parser.rs +++ b/rslib/src/card_rendering/parser.rs @@ -88,7 +88,7 @@ fn node(s: &str) -> IResult { alt((text_node, sound_node, tag_node))(s) } -/// A sound tag `[sound:ressource]`, where `ressource` is pointing to a sound or video file. +/// A sound tag `[sound:resource]`, where `resource` is pointing to a sound or video file. fn sound_node(s: &str) -> IResult { map( delimited(tag("[sound:"), is_not("]"), tag("]")), diff --git a/rslib/src/card_rendering/writer.rs b/rslib/src/card_rendering/writer.rs index 7c0c57850..27dc6ae0e 100644 --- a/rslib/src/card_rendering/writer.rs +++ b/rslib/src/card_rendering/writer.rs @@ -45,8 +45,8 @@ trait Write { buf.push_str(txt); } - fn write_sound(&mut self, buf: &mut String, ressource: &str) { - write!(buf, "[sound:{}]", ressource).unwrap(); + fn write_sound(&mut self, buf: &mut String, resource: &str) { + write!(buf, "[sound:{}]", resource).unwrap(); } fn write_tag(&mut self, buf: &mut String, tag: &Tag) { @@ -108,7 +108,7 @@ impl AvStripper { } impl Write for AvStripper { - fn write_sound(&mut self, _buf: &mut String, _ressource: &str) {} + fn write_sound(&mut self, _buf: &mut String, _resource: &str) {} fn write_tts_tag(&mut self, _buf: &mut String, _tag: &TtsTag) {} } @@ -141,11 +141,11 @@ impl<'a> AvExtractor<'a> { } impl Write for AvExtractor<'_> { - fn write_sound(&mut self, buf: &mut String, ressource: &str) { + fn write_sound(&mut self, buf: &mut String, resource: &str) { self.write_play_tag(buf); self.tags.push(pb::AvTag { value: Some(pb::av_tag::Value::SoundOrVideo( - decode_entities(ressource).into(), + decode_entities(resource).into(), )), }); }