rename contents to iterator

This commit is contained in:
Jörg Breitbart
2018-09-14 13:22:02 +02:00
parent 9514bfd31c
commit 8664f54a76
5 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ export class Buffer implements IBuffer {
this.markers.splice(this.markers.indexOf(marker), 1);
}
public contents(trimRight: boolean, startIndex?: number, endIndex?: number): IBufferStringIterator {
public iterator(trimRight: boolean, startIndex?: number, endIndex?: number): IBufferStringIterator {
return new BufferStringIterator(this, trimRight, startIndex, endIndex);
}
}