diff --git a/docs/book/src/introduction/standard_library.md b/docs/book/src/introduction/standard_library.md index e2d5fcbf25c..03831ed9954 100644 --- a/docs/book/src/introduction/standard_library.md +++ b/docs/book/src/introduction/standard_library.md @@ -4,7 +4,7 @@ Similar to Rust, Sway comes with its own standard library. The Sway Standard Library is the foundation of portable Sway software, a set of minimal shared abstractions for the broader Sway ecosystem. It offers core types, like `Result` and `Option`, library-defined operations on language primitives, native asset management, blockchain contextual operations, access control, storage management, and support for types from other VMs, among many other things. -The entire Sway standard library is a Forc project called `std`, and is available directly here: (navigate to the appropriate tagged release if the latest `master` is not compatible). +The entire Sway standard library is a Forc project called `std`, and is available directly here: (navigate to the appropriate tagged release if the latest `master` is not compatible). For the latest `std` documentation see: . ## Using the Standard Library diff --git a/sway-lib-std/src/lib.sw b/sway-lib-std/src/lib.sw index 3e313d5368c..4bfa4eed80d 100644 --- a/sway-lib-std/src/lib.sw +++ b/sway-lib-std/src/lib.sw @@ -1,4 +1,6 @@ //! The official standard library for the Sway smart contract language. +//! +//! Source: https://github.com/FuelLabs/sway/tree/master/sway-lib-std library std; dep error_signals; diff --git a/sway-lsp/tests/lib.rs b/sway-lsp/tests/lib.rs index b95c13a9ecd..8c1271dae31 100644 --- a/sway-lsp/tests/lib.rs +++ b/sway-lsp/tests/lib.rs @@ -498,7 +498,7 @@ async fn go_to_definition_for_paths() { req_uri: &uri, req_line: 10, req_char: 13, - def_line: 1, + def_line: 3, def_start_char: 8, def_end_char: 11, def_path: "sway-lib-std/src/lib.sw",