Skip to content

Commit

Permalink
Update docs/ast-builder padding.md code block lang keyword, (gluesql#…
Browse files Browse the repository at this point in the history
…1436)

Rename "rs" to "rust".
"rs" is not supported by docusaurus.
  • Loading branch information
panarch authored Oct 29, 2023
1 parent bc71fe9 commit 110629e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/ast-builder/functions/text/padding.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ The AST Builder API in GlueSQL allows you to execute lpad and rpad functions for

`lpad` returns the string with leading space if the length of the string is less than the specified length.

```rs
```rust
lpad<'a, T: Into<ExprNode<'a>>>(expr: T, len: usize, fill: Option<String>) -> ExprNode<'a>
```

## rpad

`rpad` returns the string with trailing space if the length of the string is less than the specified length.

```rs
```rust
rpad<'a, T: Into<ExprNode<'a>>>(expr: T, len: usize, fill: Option<String>) -> ExprNode<'a>
```

## Examples

In these examples, the LPAD and RPAD functions should return matching values.

```rs
```rust
use {
crate::*,
gluesql_core::{
Expand Down

0 comments on commit 110629e

Please sign in to comment.