Skip to content

Commit 6662e21

Browse files
authored
Fix the DSC overview URL in a markdown file and some small cleanup changes (PowerShell#16629)
1 parent 6b06625 commit 6662e21

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: build.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ function Start-ResGen
22382238
}
22392239

22402240
function Find-Dotnet() {
2241-
Write-Verbose -Verbose "In Find-DotNet"
2241+
Write-Verbose "In Find-DotNet"
22422242

22432243
$originalPath = $env:PATH
22442244
$dotnetPath = if ($environment.IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
@@ -2258,7 +2258,7 @@ function Find-Dotnet() {
22582258
$dotnetCLIInstalledVersion = Get-LatestInstalledSDK
22592259
Pop-Location
22602260

2261-
Write-Verbose -Verbose "dotnetCLIInstalledVersion = $dotnetCLIInstalledVersion`nchosenDotNetVersion = $chosenDotNetVersion"
2261+
Write-Verbose "dotnetCLIInstalledVersion = $dotnetCLIInstalledVersion; chosenDotNetVersion = $chosenDotNetVersion"
22622262

22632263
if ($dotnetCLIInstalledVersion -ne $chosenDotNetVersion) {
22642264
Write-Warning "The 'dotnet' in the current path can't find SDK version ${dotnetCLIRequiredVersion}, prepending $dotnetPath to PATH."

Diff for: demos/DSC/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DSC MOF Compilation Demo
22

3-
[PowerShell Desired State Configuration](https://docs.microsoft.com/powershell/scripting/dsc/overview/overview) is a declarative configuration platform for Windows and Linux.
3+
[PowerShell Desired State Configuration](https://docs.microsoft.com/powershell/scripting/dsc/overview) is a declarative configuration platform for Windows and Linux.
44
DSC configurations can be authored in PowerShell and compiled into the resultant MOF document.
55

66
This demo shows use of PowerShell to author a DSC configuration to set the configuration of an Apache web server. PowerShell scripting is used to assess distribution and version-specific properties,

Diff for: src/Microsoft.PowerShell.ConsoleHost/host/msh/UpdatesNotification.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ internal static void ShowUpdateNotification(PSHostUserInterface hostUI)
108108
// We calculate how much whitespace we need to make it look nice
109109
if (hostUI.SupportsVirtualTerminal)
110110
{
111-
// Use Warning Color
111+
// Swaps foreground and background colors.
112112
notificationColor = "\x1B[7m";
113113
resetColor = "\x1B[0m";
114114

Diff for: src/System.Management.Automation/engine/parser/Parser.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6735,7 +6735,7 @@ private ExpressionAst ExpressionRule(bool endNumberOnTernaryOpChars = false)
67356735
SkipToken();
67366736
SkipNewlines();
67376737

6738-
// We have seen the ternary operator '?' and now expecting the 'IfFalse' expression.
6738+
// We have seen the ternary operator '?' and now expecting the 'IfTrue' expression.
67396739
ExpressionAst ifTrue = ExpressionRule(endNumberOnTernaryOpChars: true);
67406740
if (ifTrue == null)
67416741
{

0 commit comments

Comments
 (0)