summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/tanya/async/loop.d2
-rw-r--r--source/tanya/async/protocol.d2
-rw-r--r--source/tanya/container/vector.d2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/tanya/async/loop.d b/source/tanya/async/loop.d
index 7130d9e..14cceec 100644
--- a/source/tanya/async/loop.d
+++ b/source/tanya/async/loop.d
@@ -27,7 +27,7 @@
* this.transport = transport;
* }
*
- * void disconnected(SocketException e = null) @nogc
+ * void disconnected(SocketException e) @nogc
* {
* }
* }
diff --git a/source/tanya/async/protocol.d b/source/tanya/async/protocol.d
index f8e9c09..3b62db6 100644
--- a/source/tanya/async/protocol.d
+++ b/source/tanya/async/protocol.d
@@ -39,7 +39,7 @@ interface Protocol
* exception = $(D_PSYMBOL Exception) if an error caused
* the disconnect, $(D_KEYWORD null) otherwise.
*/
- void disconnected(SocketException exception = null) @nogc;
+ void disconnected(SocketException exception) @nogc;
}
/**
diff --git a/source/tanya/container/vector.d b/source/tanya/container/vector.d
index 868cc40..bbeb2f6 100644
--- a/source/tanya/container/vector.d
+++ b/source/tanya/container/vector.d
@@ -1403,7 +1403,7 @@ struct Vector(T)
*
* Returns: The array with elements of this vector.
*/
- inout(T[]) data() inout
+ @property inout(T[]) data() inout
{
return vector[0 .. length];
}