Skip to content

Commit 97f9331

Browse files
committed
Update link function doc in the README
1 parent 0a391df commit 97f9331

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,9 @@ pub fn getWrapperModule(sdk: *Sdk) *Build.Module;
161161
/// provided as an argument.
162162
pub fn getWrapperModuleVulkan(sdk: *Sdk, vulkan: *Build.Module) *Build.Module;
163163

164-
/// Links SDL2 to the given exe and adds required installs if necessary.
164+
/// Links SDL2 or SDL2_ttf to the given exe and adds required installs if necessary.
165165
/// **Important:** The target of the `exe` must already be set, otherwise the Sdk will do the wrong thing!
166-
pub fn link(sdk: *Sdk, exe: *LibExeObjStep, linkage: std.Build.LibExeObjStep.Linkage) void;
167-
168-
/// Links SDL2 TTF to the given exe.
169-
/// **Important:** The target of the `exe` must already be set, otherwise the Sdk will do the wrong thing!
170-
pub fn linkTtf(sdk: *Sdk, exe: *Compile) void;
166+
pub fn link(sdk: *Sdk, exe: *Build.Step.Compile, linkage: std.builtin.LinkMode, comptime library: Library) void;
171167
```
172168

173169
## Dependencies

0 commit comments

Comments
 (0)