Skip to content

Commit 2a06faf

Browse files
ChrisThrashereXpl0it3r
authored andcommitted
Fix typos
1 parent 1aa747b commit 2a06faf

File tree

13 files changed

+21
-21
lines changed

13 files changed

+21
-21
lines changed

code_style.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## VS Code references
44

5-
VS Code uses Omnisharp.json instead `.editorconfig` for setting up formating style. References to setup can be found [here](https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options).
5+
VS Code uses Omnisharp.json instead `.editorconfig` for setting up formatting style. References to setup can be found [here](https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options).

examples/sound/Sound.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private static void PlaySound()
2727
// Load a sound buffer from a wav file
2828
SoundBuffer buffer = new SoundBuffer("resources/canary.wav");
2929

30-
// Display sound informations
30+
// Display sound information
3131
Console.WriteLine("canary.wav :");
3232
Console.WriteLine(" " + buffer.Duration.AsSeconds() + " sec");
3333
Console.WriteLine(" " + buffer.SampleRate + " samples / sec");
@@ -57,7 +57,7 @@ private static void PlayMusic()
5757
// Load an ogg music file
5858
Music music = new Music("resources/orchestral.ogg");
5959

60-
// Display music informations
60+
// Display music information
6161
Console.WriteLine("orchestral.ogg :");
6262
Console.WriteLine(" " + music.Duration.AsSeconds() + " sec");
6363
Console.WriteLine(" " + music.SampleRate + " samples / sec");

examples/sound_capture/SoundCapture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void Main(string[] args)
3838
// Get the buffer containing the captured data
3939
SoundBuffer buffer = recorder.SoundBuffer;
4040

41-
// Display captured sound informations
41+
// Display captured sound information
4242
Console.WriteLine("Sound information :");
4343
Console.WriteLine(" " + buffer.Duration + " seconds");
4444
Console.WriteLine(" " + buffer.SampleRate + " samples / seconds");

examples/visualbasic/OpenGL.vb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Module OpenGL
1616
''' </summary>
1717
Sub Main()
1818

19-
' Request a 24-bits depth bufer when creating the window
19+
' Request a 24-bits depth buffer when creating the window
2020
Dim contextSettings As New ContextSettings()
2121
contextSettings.DepthBits = 24
2222

src/SFML.Graphics/Glsl.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public Vec4(Color color)
300300
/// <summary>Depth component of the vector</summary>
301301
public float Z;
302302

303-
/// <summary>Projective/Homogenous component of the vector</summary>
303+
/// <summary>Projective/Homogeneous component of the vector</summary>
304304
public float W;
305305
}
306306

@@ -350,7 +350,7 @@ public Ivec4(Color color)
350350
/// <summary>Depth component of the vector</summary>
351351
public int Z;
352352

353-
/// <summary>Projective/Homogenous component of the vector</summary>
353+
/// <summary>Projective/Homogeneous component of the vector</summary>
354354
public int W;
355355
}
356356

@@ -391,7 +391,7 @@ public Bvec4(bool x, bool y, bool z, bool w)
391391
[MarshalAs(UnmanagedType.Bool)]
392392
public bool Z;
393393

394-
/// <summary>Projective/Homogenous component of the vector</summary>
394+
/// <summary>Projective/Homogeneous component of the vector</summary>
395395
[MarshalAs(UnmanagedType.Bool)]
396396
public bool W;
397397
}

src/SFML.Graphics/RenderWindow.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ protected override bool PollEvent(out Event eventToFill)
744744
/// Internal function to get the next event (blocking)
745745
/// </summary>
746746
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
747-
/// <returns>False if any error occured</returns>
747+
/// <returns>False if any error occurred</returns>
748748
////////////////////////////////////////////////////////////
749749
protected override bool WaitEvent(out Event eventToFill)
750750
{

src/SFML.Graphics/Shader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public void SetParameter(string name, Texture texture)
650650
/// (sampler2D GLSL type).
651651
/// </summary>
652652
/// <param name="name">Name of the texture in the shader</param>
653-
/// <param name="current">Always pass the spacial value Shader.CurrentTexture</param>
653+
/// <param name="current">Always pass the special value Shader.CurrentTexture</param>
654654
////////////////////////////////////////////////////////////
655655
[Obsolete("Use SetUniform()")]
656656
public void SetParameter(string name, CurrentTextureType current)

src/SFML.Graphics/Shape.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public Shape(Shape copy) :
189189
/// <summary>
190190
/// Recompute the internal geometry of the shape.
191191
///
192-
/// This function must be called by the derived class everytime
192+
/// This function must be called by the derived class every time
193193
/// the shape's points change (ie. the result of either
194194
/// PointCount or GetPoint is different).
195195
/// </summary>

src/SFML.System/LoadingFailedException.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public LoadingFailedException(string resourceName) : base($"Failed to load {reso
3333
/// Failure to load a resource from memory
3434
/// </summary>
3535
/// <param name="resourceName">Name of the resource</param>
36-
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
36+
/// <param name="innerException">Exception which is the cause of the current exception</param>
3737
////////////////////////////////////////////////////////////
3838
public LoadingFailedException(string resourceName, Exception innerException) :
3939
base($"Failed to load {resourceName} from memory", innerException)
@@ -58,7 +58,7 @@ public LoadingFailedException(string resourceName, string filename) :
5858
/// </summary>
5959
/// <param name="resourceName">Name of the resource</param>
6060
/// <param name="filename">Path of the file</param>
61-
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
61+
/// <param name="innerException">Exception which is the cause of the current exception</param>
6262
////////////////////////////////////////////////////////////
6363
public LoadingFailedException(string resourceName, string filename, Exception innerException) :
6464
base($"Failed to load {resourceName} from file {filename}", innerException)
@@ -70,7 +70,7 @@ public LoadingFailedException(string resourceName, string filename, Exception in
7070
/// Initialize an instance of the exception with serialized data
7171
/// </summary>
7272
/// <param name="info">Serialized data</param>
73-
/// <param name="context">Contextual informations</param>
73+
/// <param name="context">Contextual information</param>
7474
////////////////////////////////////////////////////////////
7575
public LoadingFailedException(SerializationInfo info, StreamingContext context) :
7676
base(info, context)

src/SFML.System/StreamAdaptor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct InputStream
6161

6262
////////////////////////////////////////////////////////////
6363
/// <summary>
64-
/// Function that is called to return the positon
64+
/// Function that is called to return the position
6565
/// </summary>
6666
////////////////////////////////////////////////////////////
6767
public TellCallbackType Tell;

src/SFML.Window/LoadingFailedException.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public LoadingFailedException(string resourceName) :
3737
/// Failure to load a resource from memory
3838
/// </summary>
3939
/// <param name="resourceName">Name of the resource</param>
40-
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
40+
/// <param name="innerException">Exception which is the cause of the current exception</param>
4141
////////////////////////////////////////////////////////////
4242
public LoadingFailedException(string resourceName, Exception innerException) :
4343
base("Failed to load " + resourceName + " from memory", innerException)
@@ -62,7 +62,7 @@ public LoadingFailedException(string resourceName, string filename) :
6262
/// </summary>
6363
/// <param name="resourceName">Name of the resource</param>
6464
/// <param name="filename">Path of the file</param>
65-
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
65+
/// <param name="innerException">Exception which is the cause of the current exception</param>
6666
////////////////////////////////////////////////////////////
6767
public LoadingFailedException(string resourceName, string filename, Exception innerException) :
6868
base("Failed to load " + resourceName + " from file " + filename, innerException)
@@ -74,7 +74,7 @@ public LoadingFailedException(string resourceName, string filename, Exception in
7474
/// Initialize an instance of the exception with serialized data
7575
/// </summary>
7676
/// <param name="info">Serialized data</param>
77-
/// <param name="context">Contextual informations</param>
77+
/// <param name="context">Contextual information</param>
7878
////////////////////////////////////////////////////////////
7979
public LoadingFailedException(SerializationInfo info, StreamingContext context) :
8080
base(info, context)

src/SFML.Window/Window.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ protected override bool PollEvent(out Event eventToFill)
448448
/// Internal function to get the next event (blocking)
449449
/// </summary>
450450
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
451-
/// <returns>False if any error occured</returns>
451+
/// <returns>False if any error occurred</returns>
452452
////////////////////////////////////////////////////////////
453453
protected override bool WaitEvent(out Event eventToFill)
454454
{

src/SFML.Window/WindowBase.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ protected virtual bool PollEvent(out Event eventToFill)
380380
/// Internal function to get the next event (blocking)
381381
/// </summary>
382382
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
383-
/// <returns>False if any error occured</returns>
383+
/// <returns>False if any error occurred</returns>
384384
////////////////////////////////////////////////////////////
385385
protected virtual bool WaitEvent(out Event eventToFill)
386386
{
@@ -568,7 +568,7 @@ private void CallEventHandler(Event e)
568568

569569
break;
570570

571-
// Disable CS0618 (Obselete Warning). This Event will be removed in SFML.NET 3.0, but should remain supported until then.
571+
// Disable CS0618 (Obsolete Warning). This Event will be removed in SFML.NET 3.0, but should remain supported until then.
572572
#pragma warning disable CS0618
573573
case EventType.MouseWheelMoved:
574574
if (MouseWheelMoved != null)

0 commit comments

Comments
 (0)