Skip to content

Commit 92b2b21

Browse files
authored
.Net: comments and var name inconsistent with source (#8832)
### Motivation and Context Please help reviewers and future users, providing the following information: 1. Why is this change required? comment and variable name are inconsistent with actual code 3. What problem does it solve? readability 5. What scenario does it contribute to? Step8 of the Getting started test cases 7. If it fixes an open issue, please link to the issue here. ### Description This is a cosmetic change to improve the consistency of the code base and its comment/var names ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
1 parent f08c2af commit 92b2b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/samples/GettingStarted/Step8_Pipelining.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ public async Task RunAsync()
2525

2626
Console.WriteLine("================ PIPELINE ================");
2727
{
28-
// Create a pipeline of functions that will parse a string into an int, multiply it by a double, truncate it to an int, and then humanize it.
29-
KernelFunction parseInt32 = KernelFunctionFactory.CreateFromMethod((string s) => double.Parse(s, CultureInfo.InvariantCulture), "parseInt32");
28+
// Create a pipeline of functions that will parse a string into a double, multiply it by a double, truncate it to an int, and then humanize it.
29+
KernelFunction parseDouble = KernelFunctionFactory.CreateFromMethod((string s) => double.Parse(s, CultureInfo.InvariantCulture), "parseDouble");
3030
KernelFunction multiplyByN = KernelFunctionFactory.CreateFromMethod((double i, double n) => i * n, "multiplyByN");
3131
KernelFunction truncate = KernelFunctionFactory.CreateFromMethod((double d) => (int)d, "truncate");
3232
KernelFunction humanize = KernelFunctionFactory.CreateFromPrompt(new PromptTemplateConfig()
3333
{
3434
Template = "Spell out this number in English: {{$number}}",
3535
InputVariables = [new() { Name = "number" }],
3636
});
37-
KernelFunction pipeline = KernelFunctionCombinators.Pipe([parseInt32, multiplyByN, truncate, humanize], "pipeline");
37+
KernelFunction pipeline = KernelFunctionCombinators.Pipe([parseDouble, multiplyByN, truncate, humanize], "pipeline");
3838

3939
KernelArguments args = new()
4040
{

0 commit comments

Comments
 (0)