Skip to content

Commit beb2a56

Browse files
authored
Merge pull request #1 from guha-rahul/encode_param_update
feat: u8 to const u8
2 parents 13fe068 + d1fd3d7 commit beb2a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snappy.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ fn encodeBlock(dst: []u8, src: []u8) usize {
412412
}
413413

414414
/// Encode returns the encoded form of the source input. The returned slice must be freed.
415-
pub fn encode(allocator: Allocator, src: []u8) ![]u8 {
415+
pub fn encode(allocator: Allocator, src: []const u8) ![]u8 {
416416
var mutSrc = src;
417417
const encodedLen = maxEncodedLen(mutSrc.len);
418418
if (encodedLen < 0) {

0 commit comments

Comments
 (0)