Skip to content

Commit

Permalink
fix safety annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ikod committed May 2, 2020
1 parent 6532d35 commit 9c68914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/nbuff/buffer.d
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ struct MutableMemoryChunk
{
return _size;
}
auto data() pure inout @safe @nogc nothrow
auto data() pure inout @system @nogc nothrow
{
return _data;
}
Expand Down Expand Up @@ -681,7 +681,7 @@ struct NbuffChunk
{
return _end - _beg;
}
public auto data() @system @nogc
public auto data() @safe @nogc
{
return _memory._impl._object[_beg.._end];
}
Expand Down

0 comments on commit 9c68914

Please sign in to comment.