diff --git a/docs/standard/native-interop/custom-marshalling-source-generation.md b/docs/standard/native-interop/custom-marshalling-source-generation.md index 04fdd4bfd408c..aece9c32ef2f4 100644 --- a/docs/standard/native-interop/custom-marshalling-source-generation.md +++ b/docs/standard/native-interop/custom-marshalling-source-generation.md @@ -124,7 +124,7 @@ The `ListMarshaller` in the example is a stateless collection marshaller that im ```csharp [LibraryImport("nativelib")] [return: MarshalUsing(typeof(ListMarshaller<,>), CountElementName = "numValues")] -internal static partial void ConvertList( +internal static partial List ConvertList( [MarshalUsing(typeof(ListMarshaller<,>))] List list, out int numValues); ```