commit 556ff63d8aebf0ee0c039d17640aec9702a566be
parent 8657d584cc067c11b42e15147bfc3c30e02c4996
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Tue, 30 Jun 2015 21:50:14 +0200
Correct returntype of forward-Range functions.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Fb2RSS.d b/Fb2RSS.d
@@ -17,7 +17,7 @@ class FBStream : RandomFiniteAssignable!(Post){
string document;
string userAgent="Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20110504 Firefox/7.0.1";
XmlNode root;
- @property RandomFiniteAssignable!(Post) save(){
+ @property FBStream save(){
FBStream str=this.clone();
str.posts=this.posts.save;
return str;
@@ -51,7 +51,7 @@ class FBStream : RandomFiniteAssignable!(Post){
@property size_t length(){
return posts.length;
}
- RandomFiniteAssignable!(Post) opSlice(size_t a, size_t b){
+ FBStream opSlice(size_t a, size_t b){
FBStream str=this.clone();
str.posts=this.posts[a..b];
return str;