Skip to content

Commit

Permalink
docs(codegen): improve doc comments for CodeBuffer (oxc-project#6511)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 13, 2024
1 parent e7f3e28 commit 235d357
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/oxc_codegen/src/code_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ impl CodeBuffer {
/// minimum *capacity* specified, the buffer will have a zero *length*.
///
/// # Panics
///
/// Panics if the new capacity exceeds `isize::MAX` bytes.
#[inline]
pub fn with_capacity(capacity: usize) -> Self {
Expand Down Expand Up @@ -100,7 +99,6 @@ impl CodeBuffer {
/// Does nothing if capacity is already sufficient.
///
/// # Panics
///
/// Panics if the new capacity exceeds `isize::MAX` bytes.
///
/// # Example
Expand Down Expand Up @@ -139,7 +137,7 @@ impl CodeBuffer {
/// Push a single ASCII byte into the buffer.
///
/// # Panics
/// If `byte` is not an ASCII byte (`0 - 0x7F`).
/// Panics if `byte` is not an ASCII byte (`0 - 0x7F`).
///
/// # Example
/// ```
Expand Down

0 comments on commit 235d357

Please sign in to comment.