fix: Fix typo (#1054)

This commit is contained in:
Zhenhui Xie 2020-04-07 17:58:10 +08:00 committed by GitHub
parent 2f449af680
commit b905743364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ impl<'a> Module<'a> {
}
/// Set segments in module
pub fn set_segment(&mut self, segments: Vec<Segment>) {
pub fn set_segments(&mut self, segments: Vec<Segment>) {
self.segments = segments;
}