Skip to content

Commit

Permalink
Fix typos in comments/typos (dotnet#10793)
Browse files Browse the repository at this point in the history
  • Loading branch information
samhouts authored Oct 20, 2022
1 parent 4c29bf4 commit b6cbc76
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/Core/src/Core/IFlexLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ public interface IFlexLayout : ILayout
int GetOrder(IView view);

/// <summary>
/// Returns the value that determines the proportional growth that this element will accept to acccommodate
/// Returns the value that determines the proportional growth that this element will accept to accommodate
/// the layout in the row or column.
/// </summary>
/// <param name="view">The view for which to retrieve the property value.</param>
/// <returns>The value that determines the proportional growth that this element will accept to acccommodate the layout in the row or column.</returns>
/// <returns>The value that determines the proportional growth that this element will accept to the layout in the row or column.</returns>
float GetGrow(IView view);

/// <summary>
/// Returns the value that determines the proportional reduction in size that this element will accept to acccommodate the layout in the row or column.
/// Returns the value that determines the proportional reduction in size that this element will accept to the layout in the row or column.
/// </summary>
/// <param name="view">The view for which to retrieve the property value.</param>
/// <returns>The proportional reduction in size that this element will accept to acccommodate the layout in the row or column.</returns>
/// <returns>The proportional reduction in size that this element will accept to the layout in the row or column.</returns>
float GetShrink(IView view);

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Core/IMenuFlyoutSeparator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Microsoft.Maui
{
/// <summary>
/// Represents a horizontal line that separates items in an MenuFlyout.
/// Represents a horizontal line that separates items in a MenuFlyout.
/// </summary>
public interface IMenuFlyoutSeparator : IMenuFlyoutItem
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Core/ISafeAreaView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
public interface ISafeAreaView
{
/// <summary>
/// Is used to ensure that content is positioned on an area of the screen that is safe for all devices.
/// Ensure that content is positioned on an area of the screen that is safe for all devices.
/// </summary>
bool IgnoreSafeArea { get; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Dispatching/Dispatcher.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Start()
return;

IsRunning = true;
// set interval separarately to prevent calling callback before `timer' is assigned
// set interval separately to prevent calling callback before `timer' is assigned
_timer.Change(Interval, Interval);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Core/src/Fonts/IFontManager.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Microsoft.Maui
{
/// <summary>
/// The <see cref="FontManager"/> handles all fonts, font families and font sizes througout the application.
/// The <see cref="FontManager"/> handles all fonts, font families and font sizes throughout the application.
/// </summary>
public partial interface IFontManager
{
/// <summary>
/// The default fontsize for the operating system.
/// The default font size for the operating system.
/// </summary>
double DefaultFontSize { get; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Application/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial class ApplicationHandler
public static CommandMapper<IApplication, ApplicationHandler> CommandMapper = new(ElementCommandMapper)
{
[TerminateCommandKey] = MapTerminate,
#pragma warning disable CA1416 // TODO: should we propogate SupportedOSPlatform("ios13.0") here
#pragma warning disable CA1416 // TODO: should we propagate SupportedOSPlatform("ios13.0") here
[nameof(IApplication.OpenWindow)] = MapOpenWindow,
[nameof(IApplication.CloseWindow)] = MapCloseWindow,
#pragma warning restore CA1416
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Border/BorderHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void MapContent(IBorderHandler handler, IBorderView border)

protected override void DisconnectHandler(ContentViewGroup platformView)
{
// If we're being disconnected from the xplat element, then we should no longer be managing its chidren
// If we're being disconnected from the xplat element, then we should no longer be managing its children
platformView.RemoveAllViews();

base.DisconnectHandler(platformView);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Button/ButtonHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.Maui.Handlers
public partial class ButtonHandler : ViewHandler<IButton, MaterialButton>
{
// The padding value has to be done here because in the Material Components,
// there is a minumum size of the buttons: 88dp x 48dp
// there is a minimum size of the buttons: 88dp x 48dp
// So, this is calculated:
// - Vertical: 6dp*2 (inset) + 8.5dp*2 (padding) + 2.5dp*2 (text magic) + 14dp (text size) = 48dp
// - Horizontal: 16dp (from the styles)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void MapContent(IContentViewHandler handler, IContentView page)

protected override void DisconnectHandler(ContentViewGroup platformView)
{
// If we're being disconnected from the xplat element, then we should no longer be managing its chidren
// If we're being disconnected from the xplat element, then we should no longer be managing its children
platformView.RemoveAllViews();
base.DisconnectHandler(platformView);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void LayoutSideBySide()

if (flyoutView.Parent != _sideBySideView)
{
// When the Flyout is acting as a flyout Android will set the Visibilty to GONE when it's off screen
// When the Flyout is acting as a flyout Android will set the Visibility to GONE when it's off screen
// This makes sure it's visible
flyoutView.Visibility = ViewStates.Visible;
flyoutView.RemoveFromParent();
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Layout/LayoutHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void UpdateZIndex(IView child)

protected override void DisconnectHandler(LayoutViewGroup platformView)
{
// If we're being disconnected from the xplat element, then we should no longer be managing its chidren
// If we're being disconnected from the xplat element, then we should no longer be managing its children
Clear(platformView);
base.DisconnectHandler(platformView);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void OnSwipeRefresh(object? sender, System.EventArgs e)

protected override void DisconnectHandler(MauiSwipeRefreshLayout platformView)
{
// If we're being disconnected from the xplat element, then we should no longer be managing its chidren
// If we're being disconnected from the xplat element, then we should no longer be managing its children
platformView.Refresh -= OnSwipeRefresh;
platformView.UpdateContent(null, null);
base.DisconnectHandler(platformView);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override Size GetDesiredSize(double widthConstraint, double heightConstra
{
/* With FillViewport active, the Android ScrollView will measure the content at least once; if it is
smaller than the ScrollView's viewport, it measure a second time at the size of the viewport
so that the content can properly vill the whole viewport. But it will only do this if the measurespec
so that the content can properly fill the whole viewport. But it will only do this if the measurespec
is set to Exactly. So if we want our ScrollView to Fill the space in the scroll direction, we need to
adjust the MeasureSpec accordingly. If the ScrollView is not set to Fill, we can just leave the spec
alone and the ScrollView will size to its content as usual. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void MapVisibility(ISwipeItemViewHandler handler, ISwipeItemView v

protected override void DisconnectHandler(ContentViewGroup platformView)
{
// If we're being disconnected from the xplat element, then we should no longer be managing its chidren
// If we're being disconnected from the xplat element, then we should no longer be managing its children
platformView.RemoveAllViews();
base.DisconnectHandler(platformView);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static void OnConfigureLifeCycle(IAndroidLifecycleBuilder android)
android
.OnPostCreate((activity, bundle) =>
{
// OnCreate is only ever called once when the activity is initally created
// OnCreate is only ever called once when the activity is initially created
activity.GetWindow()?.Created();
})
.OnRestart(activity =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static void OnConfigureLifeCycle(ITizenLifecycleBuilder tizen)
tizen
.OnCreate((app) =>
{
// OnCreate is only ever called once when the app is initally created
// OnCreate is only ever called once when the app is initially created
app.GetWindow().Created();
})
.OnResume(app =>
Expand Down
6 changes: 3 additions & 3 deletions src/Core/src/HotReload/HotReloadHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ public static IView GetReplacedView(IHotReloadableView view)
catch (MissingMethodException)
{
Debug.WriteLine("You are using trying to HotReload a view that requires Parameters. Please call `HotReloadHelper.Register(this, params);` in the constructor;");
//TODO: Notifiy that we couldnt hot reload.
//TODO: Notify that we couldnt hot reload.
return view;
}
catch (Exception ex)
{
Debug.WriteLine($"Error Hotreloading type: {newViewType}");
Debug.WriteLine(ex);
//TODO: Notifiy that we couldnt hot reload.
//TODO: Notify that we couldnt hot reload.
return view;
}

Expand Down Expand Up @@ -107,7 +107,7 @@ public static void RegisterReplacedView(string oldViewType, Type newViewType)
{
Debug.WriteLine($"Error calling {method.Name} on type: {newViewType}");
Debug.WriteLine(ex);
//TODO: Notifiy that we couldnt execute OnHotReload for the Method;
//TODO: Notify that we couldnt execute OnHotReload for the Method;
}
};

Expand Down

0 comments on commit b6cbc76

Please sign in to comment.