Skip to content
Browse files

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

  • Loading branch information...
1 parent 216d11c commit a4f37b451669d7e46f01a2644cc347827379ca8e @arnsholt arnsholt committed May 2, 2012
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]);
}

0 comments on commit a4f37b4

Please sign in to comment.
Something went wrong with that request. Please try again.