Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher authored and eXpl0it3r committed Sep 3, 2024
1 parent 1aa747b commit 2a06faf
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion code_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## VS Code references

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).
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).
4 changes: 2 additions & 2 deletions examples/sound/Sound.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private static void PlaySound()
// Load a sound buffer from a wav file
SoundBuffer buffer = new SoundBuffer("resources/canary.wav");

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

// Display music informations
// Display music information
Console.WriteLine("orchestral.ogg :");
Console.WriteLine(" " + music.Duration.AsSeconds() + " sec");
Console.WriteLine(" " + music.SampleRate + " samples / sec");
Expand Down
2 changes: 1 addition & 1 deletion examples/sound_capture/SoundCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static void Main(string[] args)
// Get the buffer containing the captured data
SoundBuffer buffer = recorder.SoundBuffer;

// Display captured sound informations
// Display captured sound information
Console.WriteLine("Sound information :");
Console.WriteLine(" " + buffer.Duration + " seconds");
Console.WriteLine(" " + buffer.SampleRate + " samples / seconds");
Expand Down
2 changes: 1 addition & 1 deletion examples/visualbasic/OpenGL.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Module OpenGL
''' </summary>
Sub Main()

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

Expand Down
6 changes: 3 additions & 3 deletions src/SFML.Graphics/Glsl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public Vec4(Color color)
/// <summary>Depth component of the vector</summary>
public float Z;

/// <summary>Projective/Homogenous component of the vector</summary>
/// <summary>Projective/Homogeneous component of the vector</summary>
public float W;
}

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

/// <summary>Projective/Homogenous component of the vector</summary>
/// <summary>Projective/Homogeneous component of the vector</summary>
public int W;
}

Expand Down Expand Up @@ -391,7 +391,7 @@ public Bvec4(bool x, bool y, bool z, bool w)
[MarshalAs(UnmanagedType.Bool)]
public bool Z;

/// <summary>Projective/Homogenous component of the vector</summary>
/// <summary>Projective/Homogeneous component of the vector</summary>
[MarshalAs(UnmanagedType.Bool)]
public bool W;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SFML.Graphics/RenderWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ protected override bool PollEvent(out Event eventToFill)
/// Internal function to get the next event (blocking)
/// </summary>
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
/// <returns>False if any error occured</returns>
/// <returns>False if any error occurred</returns>
////////////////////////////////////////////////////////////
protected override bool WaitEvent(out Event eventToFill)
{
Expand Down
2 changes: 1 addition & 1 deletion src/SFML.Graphics/Shader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public void SetParameter(string name, Texture texture)
/// (sampler2D GLSL type).
/// </summary>
/// <param name="name">Name of the texture in the shader</param>
/// <param name="current">Always pass the spacial value Shader.CurrentTexture</param>
/// <param name="current">Always pass the special value Shader.CurrentTexture</param>
////////////////////////////////////////////////////////////
[Obsolete("Use SetUniform()")]
public void SetParameter(string name, CurrentTextureType current)
Expand Down
2 changes: 1 addition & 1 deletion src/SFML.Graphics/Shape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public Shape(Shape copy) :
/// <summary>
/// Recompute the internal geometry of the shape.
///
/// This function must be called by the derived class everytime
/// This function must be called by the derived class every time
/// the shape's points change (ie. the result of either
/// PointCount or GetPoint is different).
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions src/SFML.System/LoadingFailedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public LoadingFailedException(string resourceName) : base($"Failed to load {reso
/// Failure to load a resource from memory
/// </summary>
/// <param name="resourceName">Name of the resource</param>
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
/// <param name="innerException">Exception which is the cause of the current exception</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(string resourceName, Exception innerException) :
base($"Failed to load {resourceName} from memory", innerException)
Expand All @@ -58,7 +58,7 @@ public LoadingFailedException(string resourceName, string filename) :
/// </summary>
/// <param name="resourceName">Name of the resource</param>
/// <param name="filename">Path of the file</param>
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
/// <param name="innerException">Exception which is the cause of the current exception</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(string resourceName, string filename, Exception innerException) :
base($"Failed to load {resourceName} from file {filename}", innerException)
Expand All @@ -70,7 +70,7 @@ public LoadingFailedException(string resourceName, string filename, Exception in
/// Initialize an instance of the exception with serialized data
/// </summary>
/// <param name="info">Serialized data</param>
/// <param name="context">Contextual informations</param>
/// <param name="context">Contextual information</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(SerializationInfo info, StreamingContext context) :
base(info, context)
Expand Down
2 changes: 1 addition & 1 deletion src/SFML.System/StreamAdaptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct InputStream

////////////////////////////////////////////////////////////
/// <summary>
/// Function that is called to return the positon
/// Function that is called to return the position
/// </summary>
////////////////////////////////////////////////////////////
public TellCallbackType Tell;
Expand Down
6 changes: 3 additions & 3 deletions src/SFML.Window/LoadingFailedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public LoadingFailedException(string resourceName) :
/// Failure to load a resource from memory
/// </summary>
/// <param name="resourceName">Name of the resource</param>
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
/// <param name="innerException">Exception which is the cause of the current exception</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(string resourceName, Exception innerException) :
base("Failed to load " + resourceName + " from memory", innerException)
Expand All @@ -62,7 +62,7 @@ public LoadingFailedException(string resourceName, string filename) :
/// </summary>
/// <param name="resourceName">Name of the resource</param>
/// <param name="filename">Path of the file</param>
/// <param name="innerException">Exception which is the cause ofthe current exception</param>
/// <param name="innerException">Exception which is the cause of the current exception</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(string resourceName, string filename, Exception innerException) :
base("Failed to load " + resourceName + " from file " + filename, innerException)
Expand All @@ -74,7 +74,7 @@ public LoadingFailedException(string resourceName, string filename, Exception in
/// Initialize an instance of the exception with serialized data
/// </summary>
/// <param name="info">Serialized data</param>
/// <param name="context">Contextual informations</param>
/// <param name="context">Contextual information</param>
////////////////////////////////////////////////////////////
public LoadingFailedException(SerializationInfo info, StreamingContext context) :
base(info, context)
Expand Down
2 changes: 1 addition & 1 deletion src/SFML.Window/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ protected override bool PollEvent(out Event eventToFill)
/// Internal function to get the next event (blocking)
/// </summary>
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
/// <returns>False if any error occured</returns>
/// <returns>False if any error occurred</returns>
////////////////////////////////////////////////////////////
protected override bool WaitEvent(out Event eventToFill)
{
Expand Down
4 changes: 2 additions & 2 deletions src/SFML.Window/WindowBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ protected virtual bool PollEvent(out Event eventToFill)
/// Internal function to get the next event (blocking)
/// </summary>
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
/// <returns>False if any error occured</returns>
/// <returns>False if any error occurred</returns>
////////////////////////////////////////////////////////////
protected virtual bool WaitEvent(out Event eventToFill)
{
Expand Down Expand Up @@ -568,7 +568,7 @@ private void CallEventHandler(Event e)

break;

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

0 comments on commit 2a06faf

Please sign in to comment.