Skip to content

Commit 22723f1

Browse files
committed
update hover test that references the ZLS version
1 parent 7aa6eb3 commit 22723f1

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

tests/lsp_features/hover.zig

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,19 @@ test "builtin" {
223223

224224
test "builtin with multi line parameters" {
225225
try testHoverWithOptions(
226-
\\@Un<cursor>ion()
227-
,
228-
\\@Union(
229-
\\ comptime layout: Type.ContainerLayout,
230-
\\ comptime ArgType: ?type,
231-
\\ comptime field_names: []const []const u8,
232-
\\ comptime field_types: *const [field_names.len]type,
233-
\\ comptime field_attrs: *const [field_names.len]Type.UnionField.Attributes,
234-
\\) type
235-
\\Returns a [union](https://ziglang.org/documentation/master/#union) type with the properties specified by the arguments.
226+
\\@atomic<cursor>Store()
227+
,
228+
\\@atomicStore(
229+
\\ comptime T: type,
230+
\\ ptr: *T,
231+
\\ value: T,
232+
\\ comptime ordering: AtomicOrder,
233+
\\) void
234+
\\This builtin function dereferences a pointer to a `T` and atomically stores the given value.
235+
\\
236+
\\`T` must be a pointer, a `bool`, a float, an integer, an enum, or a packed struct.
237+
\\
238+
\\`AtomicOrder` can be found with `@import("std").builtin.AtomicOrder`.
236239
, .{ .markup_kind = .plaintext });
237240
}
238241

0 commit comments

Comments
 (0)