Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make Str parameter of explicitly-manage rw. moritz++

  • Loading branch information...
commit a4f37b451669d7e46f01a2644cc347827379ca8e 1 parent 216d11c
@arnsholt arnsholt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/NativeCall.pm6
View
2  lib/NativeCall.pm6
@@ -245,7 +245,7 @@ role ExplicitlyManagedString {
has CStr $.cstr is rw;
}
-multi explicitly-manage(Str $x, :$encoding = 'utf8') is export {
+multi explicitly-manage(Str $x is rw, :$encoding = 'utf8') is export {
$x does ExplicitlyManagedString;
$x.cstr = pir::repr_box_str__PsP(nqp::unbox_s($x), CStr[$encoding]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.