1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

docs: add more documentation to each of the modules in vlib (#13043)

This commit is contained in:
jeffmikels
2022-01-07 06:28:50 -05:00
committed by GitHub
parent 287331bc19
commit 6e6d51a1c9
16 changed files with 266 additions and 71 deletions

View File

@@ -3,3 +3,14 @@
`clipboard` provides access to the platform's clipboard mechanism.
You can use it to read from the system clipboard, and write to it
from your applications.
## Examples:
```v
import clipboard
fn main() {
mut c := clipboard.new()
println(c.get_text())
}
```

View File

@@ -21,7 +21,7 @@ pub fn (mut cb Clipboard) clear_all() {
cb.clear()
}
// destroy destroys the clipboard and free it's resources.
// destroy destroys the clipboard and frees its resources.
pub fn (mut cb Clipboard) destroy() {
cb.free()
}