Skip to content

Commit

Permalink
fix: AnyJsClassMemberName.name() doctest"
Browse files Browse the repository at this point in the history
  • Loading branch information
unvalley committed Sep 15, 2023
1 parent 97ce7b5 commit 656228a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/biome_js_syntax/src/expr_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,15 +1018,15 @@ impl AnyJsClassMemberName {
/// ## Examples
///
/// ```
/// use biome_js_syntax::{AnyJsObjectMemberName, AnyJsExpression, AnyJsLiteralExpression, T};
/// use biome_js_syntax::{AnyJsClassMemberName, AnyJsExpression, AnyJsLiteralExpression, T};
/// use biome_js_factory::make;
///
/// let name = make::js_literal_member_name(make::ident("a"));
/// let name = AnyJsClassMemberName::JsLiteralMemberName(name);
/// assert_eq!(name.name().unwrap().text(), "a");
///
/// let quoted_name = make::js_literal_member_name(make::js_string_literal("a"));
/// let quoted_name = AnyJsClassMemberName:JsLiteralMemberName(quoted_name);
/// let quoted_name = AnyJsClassMemberName::JsLiteralMemberName(quoted_name);
/// assert_eq!(quoted_name.name().unwrap().text(), "a");
///
/// let number_name = make::js_literal_member_name(make::js_number_literal(42));
Expand Down

0 comments on commit 656228a

Please sign in to comment.