Skip to content

Commit

Permalink
fix nightly ci (#2850)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-jiaodi authored Oct 8, 2024
1 parent 499dd1c commit 6a05181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/buildCodeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ function emitUnion(
return {
name: typeName,
nullable: isNull,
description: sdkType.description || `Type of ${typeName}`,
description: sdkType.doc || `Type of ${typeName}`,
internal: true,
type: sdkType.kind,
valueType: emitSimpleType(sdkType.valueType),
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-ts/src/modular/emitSamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function emitMethodSamples(
}

// Create a function declaration structure
const description = method.description ?? `execute ${method.name}`;
const description = method.doc ?? `execute ${method.name}`;
const normalizedDescription =
description.charAt(0).toLowerCase() + description.slice(1);
const functionDeclaration: FunctionDeclarationStructure = {
Expand Down

0 comments on commit 6a05181

Please sign in to comment.