Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84f5087

Browse files
committed
Doc and typo fixes.
1 parent 156f554 commit 84f5087

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/embed_tests/TestDomainReload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TestDomainReload
1414
/// At the time this test was written, there was a very annoying
1515
/// seemingly random crash bug when integrating pythonnet into Unity.
1616
///
17-
/// The repro steps we that David Lassonde, Viktoria Kovecses and
17+
/// The repro steps that David Lassonde, Viktoria Kovecses and
1818
/// Benoit Hudson eventually worked out:
1919
/// 1. Write a HelloWorld.cs script that uses Python.Runtime to access
2020
/// some C# data from python: C# calls python, which calls C#.

src/embed_tests/TestTypeManager.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ public static void TestMemoryMapping()
3232
Assert.That(Marshal.ReadInt64(page), Is.EqualTo(17));
3333

3434
// Mark it read-execute, now we can't write anymore.
35-
// We can't actually test access protectoin under Windows,
36-
// because AccessViolationException is assumed to mean we're in a
37-
// corrupted state:
35+
//
36+
// We can't actually test access protection under Windows, because
37+
// AccessViolationException is assumed to mean we're in a corrupted
38+
// state:
3839
// https://stackoverflow.com/questions/3469368/how-to-handle-accessviolationexception
3940
mapper.SetReadExec(page, len);
4041
Assert.That(Marshal.ReadInt64(page), Is.EqualTo(17));

src/runtime/runtime.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ public enum MachineType
232232
};
233233

234234
/// <summary>
235-
/// Map lower-case version of the python machine name to the processor
236-
/// type. There are aliases, e.g. x86_64 and amd64 are two names for
237-
/// the same thing. Make sure to lower-case the search string, because
238-
/// capitalization can differ.
235+
/// Map lower-case version of the python machine name to the processor
236+
/// type. There are aliases, e.g. x86_64 and amd64 are two names for
237+
/// the same thing. Make sure to lower-case the search string, because
238+
/// capitalization can differ.
239239
/// </summary>
240240
static readonly Dictionary<string, MachineType> MachineTypeMapping = new Dictionary<string, MachineType>()
241241
{

0 commit comments

Comments
 (0)