We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400f30a commit 8f805f5Copy full SHA for 8f805f5
exercises/practice/circular-buffer/.meta/example.v
@@ -17,7 +17,7 @@ pub fn (mut b CircularBuffer[T]) write(value T) ! {
17
if b.content.len >= b.capacity {
18
return error('Buffer is full')
19
}
20
- b.content.prepend(value)
+ b.content.prepend([value])
21
22
23
pub fn (mut b CircularBuffer[T]) read() !T {
@@ -33,7 +33,7 @@ pub fn (mut b CircularBuffer[T]) overwrite(value T) {
33
b.content.pop()
34
35
36
37
38
39
pub fn (mut b CircularBuffer[T]) clear() {
0 commit comments